configstore

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(l hclog.Logger)

Types

type ConfigStore

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

func New

func New(lifetime, interval time.Duration) *ConfigStore

func (*ConfigStore) AddTarget

func (cs *ConfigStore) AddTarget(id string, host []string, ls map[string]string) error

func (*ConfigStore) JSON

func (cs *ConfigStore) JSON() ([]byte, error)

func (*ConfigStore) RemoveTarget

func (cs *ConfigStore) RemoveTarget(id string)

func (*ConfigStore) Run

func (cs *ConfigStore) Run(ctx context.Context)

type ConfigurationStore

type ConfigurationStore interface {
	AddTarget(string, []string, map[string]string) error
	RemoveTarget(string)
	JSON() ([]byte, error)
	Run(context.Context)
}

Jump to

Keyboard shortcuts

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