etcd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint string
	Username string
	Password string
	Logger   *zap.Logger
	Tracer   trace.Tracer
}

type Manager

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

func NewManager

func NewManager(config Config) *Manager

func (*Manager) Close

func (m *Manager) Close(ctx context.Context) error

func (*Manager) Get

func (m *Manager) Get(ctx context.Context, k string) (*clientv3.GetResponse, error)

func (*Manager) Healthcheck

func (m *Manager) Healthcheck(ctx context.Context) error

func (*Manager) NewConcurrencySession

func (m *Manager) NewConcurrencySession(ctx context.Context) (*concurrency.Session, error)

func (*Manager) Put

func (m *Manager) Put(ctx context.Context, k, v string) (*clientv3.PutResponse, error)

Jump to

Keyboard shortcuts

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