Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Host string Port uint16 Timeout time.Duration Secure bool TLSConfig *tls.Config }
Options is the config for the registry
type Registry ¶
type Registry interface { // Init initializes the registry Init(opts Options) error // Options Returns the registry options Options() Options // Register adds the service to the registry Register(entry Entry) error // Deregister removes the service to the registry Deregister(serviceName string) error // GetService Resolves the servicename and returns the service details GetService(serviceName string) ([]Entry, error) // ListServices returns all the services in the registry ListServices() ([]Entry, error) // Watch sets the registry to watch mode so that it tracks any updates Watch() error // CancelWatch stops the registry watch mode CancelWatch() error }
Registry defines the registry interface
Click to show internal directories.
Click to hide internal directories.