consul

package
v0.0.0-...-c8a8185 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName = "consul"
)

Variables

This section is empty.

Functions

func NewStore

func NewStore(opts *store.Options) (store.Store, error)

NewStore creates a new store

Types

type Config

type Config struct {
	Prefix string         `json:"prefix" yaml:"prefix"`
	Consul *consul.Config `json:"consul" yaml:"consul"`
}

type Store

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

func (*Store) Bundle

func (s *Store) Bundle(ctx context.Context) ([]byte, error)

Bundle

func (*Store) Connect

func (s *Store) Connect(ctx context.Context) (err error)

Connect is noop but required to implement store interface

func (*Store) Disconnect

func (s *Store) Disconnect(ctx context.Context) (err error)

Disconnect is noop but required to implement store interface

Jump to

Keyboard shortcuts

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