Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstanceList ¶
type InstanceList struct { Instances []naming.Instance `json:"instances"` LatestTimestamp int64 `json:"latest_timestamp"` }
InstanceList discovery instance list
type InstanceMetadata ¶
type InstanceMetadata struct {
Provider interface{} `json:"provider"`
}
InstanceMetadata discovery instance metadata
type NodeStatus ¶
type NodeStatus int
NodeStatus Status of instance
const ( // NodeStatusUP Ready to receive register NodeStatusUP NodeStatus = iota // NodeStatusLost lost with each other NodeStatusLost )
type ServerNode ¶
type ServerNode struct { Addr string `json:"addr"` Zone string `json:"zone"` Status NodeStatus `json:"status"` }
ServerNode backend servier node status
Click to show internal directories.
Click to hide internal directories.