etcd

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(c *clientv3.Client, key string) (config.Config, error)

func SetBytesConfig

func SetBytesConfig(ctx context.Context, client *clientv3.Client, name string, value []byte) error

SetBytesConfig sets a byte array config value in etcd

func SetDurationConfig

func SetDurationConfig(ctx context.Context, client *clientv3.Client, name string, value time.Duration) error

SetDurationConfig sets a duration config value in etcd

func SetFloat64Config

func SetFloat64Config(ctx context.Context, client *clientv3.Client, name string, value float64) error

SetFloat64Config sets a float64 config value in etcd

func SetInt64Config

func SetInt64Config(ctx context.Context, client *clientv3.Client, name string, value int64) error

SetInt64Config sets an int64 config value in etcd

func SetStringConfig

func SetStringConfig(ctx context.Context, client *clientv3.Client, name string, value string) error

SetStringConfig sets a string config value in etcd

func SetUint64Config

func SetUint64Config(ctx context.Context, client *clientv3.Client, name string, value uint64) error

SetUint64Config sets a uint64 config value in etcd

Types

This section is empty.

Jump to

Keyboard shortcuts

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