Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorInvalidAdminAddress = errors.New("invalid address")
)
Functions ¶
This section is empty.
Types ¶
type IApintoAdmin ¶
type IApintoAdmin interface { Ping(ctx context.Context) error Info(ctx context.Context) (*Info, error) Version(ctx context.Context) (*Version, error) }
func Admin ¶
func Admin(address ...string) IApintoAdmin
type Node ¶
type Node struct { Id string `json:"id,omitempty" yaml:"id"` Name string `json:"name,omitempty" yaml:"name"` Peer []string `json:"peer,omitempty" yaml:"peer"` Admin []string `json:"admin,omitempty" yaml:"admin"` Server []string `json:"server,omitempty" yaml:"server"` Leader bool `json:"leader,omitempty" yaml:"leader"` }
Click to show internal directories.
Click to hide internal directories.