1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-07 00:46:53 +01:00
Files
Prashanth Pai 4f7c8135bf plugins: Create 'api' package for each plugin
In Go, every directory is a distinct package. There is no such thing as
a subpackage. Having `api` is a separate package as a subdirectory in
each plugin ensures that we will not run into cyclic dependency issues.

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-26 11:53:42 +05:30

22 lines
679 B
Go

package api
// GeorepRemoteHostReq represents Remote host ID and IP/Hostname
type GeorepRemoteHostReq struct {
PeerID string `json:"peerid"`
Hostname string `json:"host"`
}
// GeorepCreateReq represents REST API request to create Geo-rep session
type GeorepCreateReq struct {
MasterVol string `json:"mastervol"`
RemoteUser string `json:"remoteuser"`
RemoteHosts []GeorepRemoteHostReq `json:"remotehosts"`
RemoteVol string `json:"remotevol"`
Force bool `json:"force"`
}
// GeorepCommandsReq represents extra arguments to Geo-rep APIs
type GeorepCommandsReq struct {
Force bool `json:"force"`
}