Versions in this module Expand all Collapse all v1 v1.0.3 Jul 17, 2021 v1.0.1 Jul 17, 2021 Changes in this version + type CheckServiceNode struct + Checks HealthChecks + Node *Node + Service *NodeService + type CheckType struct + CheckID string + DeregisterCriticalServiceAfter time.Duration + DockerContainerID string + HTTP string + Header map[string][]string + Interval time.Duration + Method string + Name string + Notes string + ScriptArgs []string + Shell string + Status string + TCP string + TLSSkipVerify bool + TTL time.Duration + Timeout time.Duration + type CheckTypes []*CheckType + type Config struct + Address []string + AppID string + Catalog bool + NamespaceID string + Token string + type Consul struct + func DefaultConsul() *Consul + func New(conf *Config) *Consul + func (c *Consul) Catalog() + func (c *Consul) Deregister(ins *naming.Instance) (err error) + func (c *Consul) Fetch(svc naming.Service) (nodes []naming.Instance, initialized bool) + func (c *Consul) Register(ins *naming.Instance) (err error) + func (c *Consul) Scheme() string + func (c *Consul) Subscribe(svc naming.Service) naming.Watcher + type HealthCheck struct + CheckID string + Name string + Node string + Notes string + Output string + ServiceID string + ServiceName string + ServiceTags []string + Status string + type HealthChecks []*HealthCheck + type Node struct + Address string + Datacenter string + ID string + Meta map[string]string + Node string + TaggedAddresses map[string]string + type NodeService struct + Address string + EnableTagOverride bool + ID string + Meta map[string]string + Port int + Service string + Tags []string + type RaftIndex struct + CreateIndex uint64 + ModifyIndex uint64 + type ServiceDefinition struct + Address string + Check CheckType + Checks CheckTypes + EnableTagOverride bool + ID string + Meta map[string]string + Name string + Port int + Tags []string + Token string + type Watcher struct + func (w *Watcher) Close() + func (w *Watcher) Watch(ctx context.Context) (nodes []naming.Instance, err error)