Documentation
¶
Index ¶
Constants ¶
View Source
const (
ETCD_LINK_DIRECTORY = "/link"
)
Variables ¶
View Source
var ( ErrIPAlreadyPresent = errors.New("IP already present") ErrHostNotFound = errors.New("Host not found") )
Functions ¶
func NewEtcdStorage ¶
Types ¶
type Healthcheck ¶
type Healthcheck struct { Type HealthcheckType `json:"type"` Host string `json:"host"` Port int `json:"port"` }
func (Healthcheck) Addr ¶
func (h Healthcheck) Addr() string
type IP ¶
type IP struct { ID string `json:"id"` IP string `json:"ip"` Status string `json:"status,omitempty"` Checks []Healthcheck `json:"checks,omitempty"` KeepaliveInterval int `json:"keepalive_interval"` HealthcheckInterval int `json:"healthcheck_interval"` }
func (IP) ToLogrusFields ¶ added in v1.9.0
Directories
¶
Path | Synopsis |
---|---|
Package modelsmock is a generated GoMock package.
|
Package modelsmock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.