etcd

package
v0.0.0-...-526a5c0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package etcd contains Etcd remote config provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider is a remote config provider.

func NewProvider

func NewProvider(client *clientv3.Client) *Provider

NewProvider creates a new remote config provider.

func (*Provider) Get

func (p *Provider) Get(ctx context.Context, key string) (string, error)

Get gets value by key.

func (*Provider) ListKeys

func (p *Provider) ListKeys(ctx context.Context) ([]string, error)

ListKeys lists keys.

func (*Provider) Put

func (p *Provider) Put(ctx context.Context, key, value string) error

Put puts value by key.

Jump to

Keyboard shortcuts

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