Versions in this module Expand all Collapse all v1 v1.0.3 Mar 23, 2022 v1.0.2 Oct 29, 2021 v1.0.1 Aug 12, 2021 v1.0.0 Jul 19, 2021 v1.0.0-rc1 Jul 18, 2021 v0 v0.1.13 Apr 14, 2021 v0.1.12 Jan 13, 2021 v0.1.11 Jan 13, 2021 v0.1.10 Dec 30, 2020 v0.1.9 Dec 29, 2020 v0.1.8 Dec 23, 2020 v0.1.7 Dec 17, 2020 v0.1.6 Dec 17, 2020 v0.1.5 Dec 17, 2020 v0.1.4 Dec 8, 2020 v0.1.3 Dec 8, 2020 v0.1.2 Dec 3, 2020 v0.1.1 Dec 2, 2020 v0.1.0 Dec 2, 2020 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)