consul

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consul

type Consul struct {
	// contains filtered or unexported fields
}

Consul is a state store implementation for HashiCorp Consul.

func NewConsulStateStore

func NewConsulStateStore(logger logger.Logger) *Consul

NewConsulStateStore returns a new consul state store.

func (*Consul) BulkDelete

func (c *Consul) BulkDelete(req []state.DeleteRequest) error

BulkDelete performs a bulk delete operation

func (*Consul) BulkSet

func (c *Consul) BulkSet(req []state.SetRequest) error

BulkSet performs a bulk save operation

func (*Consul) Delete

func (c *Consul) Delete(req *state.DeleteRequest) error

Delete performes a Consul KV delete operation

func (*Consul) Get

func (c *Consul) Get(req *state.GetRequest) (*state.GetResponse, error)

Get retrieves a Consul KV item

func (*Consul) Init

func (c *Consul) Init(metadata state.Metadata) error

Init does metadata and config parsing and initializes the Consul client

func (*Consul) Set

func (c *Consul) Set(req *state.SetRequest) error

Set saves a Consul KV item

Jump to

Keyboard shortcuts

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