consul

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() *consulapi.Client

Client creates a consul client from the consul api

Types

type Consul

type Consul struct {
	Client     consulapi.Client
	KeyData    consulapi.KVPairs
	KeyDataLen int
	PQData     []*consulapi.PreparedQueryDefinition
	PQDataLen  int
	ACLData    []*consulapi.ACLEntry
	ACLDataLen int
}

Consul struct is used for consul client such as the client and the actual key data.

func (*Consul) ListACLs added in v0.1.6

func (c *Consul) ListACLs()

ListACLs lists all the prepared queries from consul

func (*Consul) ListKeys

func (c *Consul) ListKeys()

ListKeys lists all the keys from consul with no prefix.

func (*Consul) ListPQs added in v0.1.6

func (c *Consul) ListPQs()

ListPQs lists all the prepared queries from consul

Jump to

Keyboard shortcuts

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