consul

package
v0.0.0-...-7a11748 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceKVs

func GetServiceKVs(kvp consulapi.KVPairs, service string) consulapi.KVPairs

func GetServicesKVs

func GetServicesKVs(kvp consulapi.KVPairs, filters []string) map[string]consulapi.KVPairs

Types

type Config

type Config struct {
	UseSSL bool
	Host   string
}

func (Config) GetClient

func (c Config) GetClient() (ConsulClient, error)

type ConsulClient

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

func (ConsulClient) Catalog

func (c ConsulClient) Catalog() *consulapi.Catalog

func (ConsulClient) Health

func (c ConsulClient) Health() *consulapi.Health

func (ConsulClient) KV

func (c ConsulClient) KV() *consulapi.KV

Jump to

Keyboard shortcuts

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