Documentation ¶
Index ¶
- type Node
- func (n *Node) Deserialize(data []byte) error
- func (n *Node) Equal(other *Node) bool
- func (n *Node) GetAddress() (host string, port int)
- func (n *Node) GetMeta(name string) (string, bool)
- func (n *Node) IsAlive() bool
- func (n *Node) MemberStatus() *cluster.Member
- func (n *Node) Serialize() ([]byte, error)
- func (n *Node) SetAlive(alive bool)
- func (n *Node) SetMeta(name string, val string)
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { ID string `json:"id"` Name string `json:"name"` Host string `json:"host"` Address string `json:"address"` Port int `json:"port"` Kinds []string `json:"kinds"` Meta map[string]string `json:"-"` Alive bool `json:"alive"` }
func NewNodeFromBytes ¶
func (*Node) Deserialize ¶
func (*Node) GetAddress ¶
func (*Node) MemberStatus ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) GetHealthStatus ¶
GetHealthStatus returns an error if the cluster health status has problems
Click to show internal directories.
Click to hide internal directories.