etcd

package
v0.0.0-...-378a548 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Endpoints      []string
	ConnectTimeout = 5 * time.Second
	ExecuteTimeout = 20 * time.Second

	RetryTimes = 3
	Period     = 10 * time.Second
)
View Source
var (
	ServicePrefix = "grpclb"
)

Functions

func NewClient

func NewClient() (*clientv3.Client, error)

func RegisterService

func RegisterService(ctx context.Context, service string, host string, port int, ttl int64, client *clientv3.Client) (func() error, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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