Documentation ¶
Index ¶
- type CatalogService
- type Consul
- func (c *Consul) Connect() (*Consul, error)
- func (c *Consul) DeregisterService(id string) error
- func (c *Consul) GetService(groupName, tag string) ([]*CatalogService, error)
- func (c *Consul) GetValidCheck(name, id string) (string, error)
- func (c *Consul) IsExists(groupName, id string) (bool, error)
- func (c *Consul) RegisterService(settings *ServiceSettings) error
- type Consuler
- type HKSettings
- type Nodes
- type Service
- type ServiceSettings
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogService ¶
type Consul ¶
type Consul struct { Config *Settings Client *api.Client Catalog *api.Catalog Health *api.Health Agent *api.Agent }
func (*Consul) DeregisterService ¶
func (*Consul) GetService ¶
func (c *Consul) GetService(groupName, tag string) ([]*CatalogService, error)
func (*Consul) RegisterService ¶
func (c *Consul) RegisterService(settings *ServiceSettings) error
type Consuler ¶
type Consuler interface { Connect() (*Consul, error) GetService(string, string) ([]*CatalogService, error) RegisterService(*ServiceSettings) error DeregisterService(string) error // contains filtered or unexported methods }
type HKSettings ¶
type Nodes ¶
type Nodes struct { Capis []*CatalogService Aapis []*CatalogService Monitors []*CatalogService }
type ServiceSettings ¶
type ServiceSettings struct { Service *Service HealthCheck *HKSettings }
Click to show internal directories.
Click to hide internal directories.