clientproxy

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ClientDefaultTimeout = 1

ClientDefaultTimeout ..

Variables

View Source
var ClientProxy clientProxy

ClientProxy ..

Functions

func Init

func Init()

Init ...

Types

type EtcdClient

type EtcdClient struct {
	UniqueZone *view.UniqZone
	// contains filtered or unexported fields
}

func NewEtcdClient

func NewEtcdClient(cfg clientv3.Config, options ...EtcdClientOption) (obj *EtcdClient, err error)

NewEtcdClient ..

func (*EtcdClient) Conn added in v0.4.0

func (e *EtcdClient) Conn() *clientv3.Client

func (*EtcdClient) Get

func (e *EtcdClient) Get(ctx context.Context, key string, opts ...clientv3.OpOption) (resp *clientv3.GetResponse, err error)

func (*EtcdClient) Put

func (e *EtcdClient) Put(ctx context.Context, key, val string, opts ...clientv3.OpOption) (resp *clientv3.PutResponse, err error)

type EtcdClientOption added in v0.4.0

type EtcdClientOption func(e *EtcdClient)

func WithUniqueZone added in v0.4.0

func WithUniqueZone(zone *view.UniqZone) EtcdClientOption

Jump to

Keyboard shortcuts

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