consul

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

This package wraps selected methods from the Consul API and submits stats via the stats package

Index

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)

func (*InstrumentedKV) Get

func (kv *InstrumentedKV) Get(key string, q *capi.QueryOptions, tags []string) (*capi.KVPair, *capi.QueryMeta, error)

func (*InstrumentedKV) Put

func (kv *InstrumentedKV) Put(p *capi.KVPair, q *capi.WriteOptions, tags []string) (*capi.WriteMeta, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL