etcd

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*clientv3.Client
	Conf Config
}

func (*Client) Close

func (e *Client) Close() error

Close closes the etcd client connection.

func (*Client) Config

func (e *Client) Config() any

Config returns the embedded Conf as the configuration for injection.

func (*Client) Init

func (e *Client) Init() error

Init creates the etcd client and stores it in Client.

type Config

type Config clientv3.Config

func (*Config) AfterInject

func (c *Config) AfterInject()

AfterInject is a no-op satisfying the Config interface.

func (*Config) BeforeInject

func (c *Config) BeforeInject()

BeforeInject is a no-op satisfying the Config interface.

func (*Config) Build

func (c *Config) Build() (*clientv3.Client, error)

Build creates an etcd v3 client with the given configuration.

Jump to

Keyboard shortcuts

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