Documentation ¶
Overview ¶
This package wraps selected methods from the Consul API and submits stats via the stats package
Index ¶
- type InstrumentedAgent
- type InstrumentedKV
- func (kv *InstrumentedKV) DeleteTree(prefix string, w *capi.WriteOptions, tags []string) (*capi.WriteMeta, error)
- func (kv *InstrumentedKV) Get(key string, q *capi.QueryOptions, tags []string) (*capi.KVPair, *capi.QueryMeta, error)
- func (kv *InstrumentedKV) Put(p *capi.KVPair, q *capi.WriteOptions, tags []string) (*capi.WriteMeta, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstrumentedAgent ¶
type InstrumentedAgent struct {
// contains filtered or unexported fields
}
func NewInstrumentedAgent ¶
func NewInstrumentedAgent(client *capi.Client) *InstrumentedAgent
func (*InstrumentedAgent) ServiceDeregister ¶
func (a *InstrumentedAgent) ServiceDeregister(serviceID string) error
func (*InstrumentedAgent) ServiceRegister ¶
func (a *InstrumentedAgent) ServiceRegister(service *capi.AgentServiceRegistration) error
func (*InstrumentedAgent) Services ¶
func (a *InstrumentedAgent) Services() (map[string]*capi.AgentService, error)
type InstrumentedKV ¶
type InstrumentedKV struct {
// contains filtered or unexported fields
}
func NewInstrumentedKV ¶
func NewInstrumentedKV(client *capi.Client) *InstrumentedKV
func (*InstrumentedKV) DeleteTree ¶
func (kv *InstrumentedKV) DeleteTree(prefix string, w *capi.WriteOptions, tags []string) (*capi.WriteMeta, error)
Click to show internal directories.
Click to hide internal directories.