etcdv3

package
v3.7.16 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*etcdv3.Config
	ReadTimeout time.Duration
	Node        string
	Prefix      string
	ServiceTTL  time.Duration
}

Config ...

func New

func New() *Config

New ...

func (*Config) Build

func (config *Config) Build() (registry.Registry, error)

Build ...

func (*Config) GetNode added in v3.2.29

func (config *Config) GetNode() string

func (*Config) MustBuild

func (config *Config) MustBuild() registry.Registry

MustBuild ...

func (*Config) MustSingleton added in v3.2.29

func (config *Config) MustSingleton() registry.Registry

func (*Config) SetNode added in v3.2.29

func (config *Config) SetNode(prefix string) *Config

SetNode ...

func (*Config) SetPrefix added in v3.2.24

func (config *Config) SetPrefix(prefix string) *Config

SetPrefix ...

func (*Config) Singleton added in v3.2.29

func (config *Config) Singleton() (registry.Registry, error)

Jump to

Keyboard shortcuts

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