consul

package module
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package consul is a consul implementation of kv

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(opts ...store.Option) store.Store

func StripPrefix

func StripPrefix(strip bool) store.Option

StripPrefix indicates whether to remove the prefix from config entries, or leave it in place.

func WithAddress

func WithAddress(a string) store.Option

WithAddress sets the consul address

func WithConfig

func WithConfig(c *api.Config) store.Option

WithConfig set consul-specific options

func WithDatacenter

func WithDatacenter(p string) store.Option

func WithPrefix

func WithPrefix(p string) store.Option

WithPrefix sets the key prefix to use

func WithToken

func WithToken(p string) store.Option

WithToken sets the key token to use

Types

This section is empty.

Jump to

Keyboard shortcuts

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