Documentation
¶
Index ¶
- type Consul
- type Option
- func WithCheckDeregisterTimeout(timeout string) Option
- func WithCheckInterval(interval string) Option
- func WithCheckTLL(timeout string) Option
- func WithCheckTimeout(timeout string) Option
- func WithSelfCheckTimeout(timeout time.Duration) Option
- func WithServiceCheck(addr string, port int) Option
- func WithTag(tag string) Option
- type Plan
- type ServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consul ¶
type Consul struct {
// contains filtered or unexported fields
}
func (*Consul) RegisterService ¶
func (*Consul) WatchService ¶
func (c *Consul) WatchService(serviceAddr string) <-chan []*api.ServiceEntry
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithCheckInterval ¶
func WithCheckTLL ¶
func WithCheckTimeout ¶
func WithSelfCheckTimeout ¶
func WithServiceCheck ¶
type Plan ¶
type Plan struct {
// contains filtered or unexported fields
}
type ServiceConfig ¶
type ServiceConfig struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.