endpoint

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 24 Imported by: 31

Documentation

Index

Constants

View Source
const (
	KineSocket          = "unix://kine.sock"
	GracefulStopTimeout = 2 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GRPCServer            *grpc.Server
	WaitGroup             *sync.WaitGroup
	Listener              string
	Endpoint              string
	ConnectionPoolConfig  generic.ConnectionPoolConfig
	ServerTLSConfig       tls.Config
	BackendTLSConfig      tls.Config
	MetricsRegisterer     prometheus.Registerer
	NotifyInterval        time.Duration
	EmulatedETCDVersion   string
	CompactInterval       time.Duration
	CompactIntervalJitter int
	CompactTimeout        time.Duration
	CompactMinRetain      int64
	CompactBatchSize      int64
	PollBatchSize         int64
	LogFormat             string
}

type ETCDConfig

type ETCDConfig struct {
	Endpoints   []string
	TLSConfig   tls.Config
	LeaderElect bool
}

func Listen

func Listen(ctx context.Context, config Config) (etcd ETCDConfig, rerr error)

Jump to

Keyboard shortcuts

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