Versions in this module Expand all Collapse all v0 v0.1.0 Apr 16, 2014 Changes in this version + const HealthCritical + const HealthPassing + const HealthUnknown + const HealthWarning + const KVSCAS + const KVSDelete + const KVSDeleteTree + const KVSSet + var ErrNoDCPath = fmt.Errorf("No path to datacenter") + var ErrNoLeader = fmt.Errorf("No cluster leader") + var ErrNoServers = fmt.Errorf("No known Consul servers") + func Decode(buf []byte, out interface{}) error + func Encode(t MessageType, msg interface{}) ([]byte, error) + type BlockingQuery struct + MaxQueryTime time.Duration + MinQueryIndex uint64 + type CheckServiceNode struct + Checks HealthChecks + Node Node + Service NodeService + type CheckServiceNodes []CheckServiceNode + type ChecksInStateRequest struct + Datacenter string + State string + type DCSpecificRequest struct + Datacenter string + type DeregisterRequest struct + CheckID string + Datacenter string + Node string + ServiceID string + type DirEntries []*DirEntry + type DirEntry struct + CreateIndex uint64 + Flags uint64 + Key string + ModifyIndex uint64 + Value []byte + type HealthCheck struct + CheckID string + Name string + Node string + Notes string + ServiceID string + ServiceName string + Status string + type HealthChecks []*HealthCheck + type IndexedCheckServiceNodes struct + Index uint64 + Nodes CheckServiceNodes + type IndexedDirEntries struct + Entries DirEntries + Index uint64 + type IndexedHealthChecks struct + HealthChecks HealthChecks + Index uint64 + type IndexedNodeServices struct + Index uint64 + NodeServices *NodeServices + type IndexedNodes struct + Index uint64 + Nodes Nodes + type IndexedServiceNodes struct + Index uint64 + ServiceNodes ServiceNodes + type IndexedServices struct + Index uint64 + Services Services + type KVSOp string + type KVSRequest struct + Datacenter string + DirEnt DirEntry + Op KVSOp + type KeyRequest struct + Datacenter string + Key string + type MessageType uint8 + const DeregisterRequestType + const KVSRequestType + const RegisterRequestType + type Node struct + Address string + Node string + type NodeService struct + ID string + Port int + Service string + Tags []string + type NodeServices struct + Node Node + Services map[string]*NodeService + type NodeSpecificRequest struct + Datacenter string + Node string + type Nodes []Node + type RegisterRequest struct + Address string + Check *HealthCheck + Datacenter string + Node string + Service *NodeService + type ServiceNode struct + Address string + Node string + ServiceID string + ServiceName string + ServicePort int + ServiceTags []string + type ServiceNodes []ServiceNode + type ServiceSpecificRequest struct + Datacenter string + ServiceName string + ServiceTag string + TagFilter bool + type Services map[string][]string