etcd

package
v0.0.0-...-0c176ed Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEtcdDiscovery

func NewEtcdDiscovery(ctx context.Context, serviceGroup string, opt *EtcdOptions) (sd.Discovery, error)

NewEtcdDiscovery 创建一个etcd实例

Types

type EtcdOptions

type EtcdOptions struct {
	clientv3.Config `json:",inline"`
	LeaseTTL        int64 `json:"leaseTTL"`
}

Jump to

Keyboard shortcuts

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