Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyID = errors.New("service id cannot be empty") ErrEmptyName = errors.New("service name cannot be empty") )
Functions ¶
This section is empty.
Types ¶
type ConsulDiscovery ¶
type ConsulDiscovery struct {
// contains filtered or unexported fields
}
func NewConsulDiscovery ¶
func NewConsulDiscovery(service micro.Service, check api.AgentServiceCheck, client *api.Client) *ConsulDiscovery
func (*ConsulDiscovery) RegisterService ¶
func (d *ConsulDiscovery) RegisterService() error
func (*ConsulDiscovery) UnregisterService ¶
func (d *ConsulDiscovery) UnregisterService() error
Click to show internal directories.
Click to hide internal directories.