Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend interface { Ping(ctx context.Context) error Query(ctx context.Context, target Target, sel Selector, md Metadata) ([]*Instance, error) Close(ctx context.Context) error }
Backend provide service query
type Instance ¶
type Instance struct { Region string `json:"region"` Zone string `json:"zone"` Env string `json:"env"` Hostname string `json:"hostname"` DiscoveryID string `json:"discovery_id"` TreeID int64 `json:"tree_id"` IPAddr net.IP `json:"ip_addr,omitempty"` // hacked field }
Instance service instance struct
Click to show internal directories.
Click to hide internal directories.