etcd

package
v0.2.0-cappuccino Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientOptions

type ClientOptions struct {
	Endpoints string
}

type Config

type Config struct {
	ClientOptions ClientOptions
}

type Storage

type Storage struct {
	Config Config
	Client client.Client
	L      *sync.RWMutex
}

func (*Storage) DeleteMetric

func (s *Storage) DeleteMetric(key string) error

func (*Storage) Init

func (s *Storage) Init() error

func (*Storage) ReadMetric

func (s *Storage) ReadMetric(key string) (*client.Node, error)

func (s *Storage) ReadMetric(key string) (map[string]interface{}, error) {

func (*Storage) WriteMetric

func (s *Storage) WriteMetric(key string, metric interface{}) error

func (s *Storage) WriteMetric(key string, metric map[string]interface{}) error {

Jump to

Keyboard shortcuts

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