Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnParams ¶
type ConnParams struct { Address string `json:"address"` Datacenter string `json:"datacenter"` Token string `json:"token"` CAFile string `json:"ca_file"` CAPath string `json:"ca_path"` CertFile string `json:"cert_file"` KeyFile string `json:"key_file"` Insecure bool `json:"insecure"` Key string `json:"key"` }
type Registry ¶
type Registry struct { RegisterChan chan ServiceAction // contains filtered or unexported fields }
func NewRegistry ¶
func (*Registry) RegisterTcpListener ¶
func (*Registry) UnregisterTcpListener ¶
func (*Registry) WaitFinished ¶
func (r *Registry) WaitFinished()
type Service ¶
type ServiceAction ¶
type ServiceAction struct { Action ServiceActionType Service *Service }
type ServiceActionType ¶
type ServiceActionType bool
const ( REGISTER ServiceActionType = false UNREGISTER = true )
Click to show internal directories.
Click to hide internal directories.