endpoint

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KineSocket    = "unix://kine.sock"
	SQLiteBackend = "sqlite"
	DQLiteBackend = "dqlite"
	ETCDBackend   = "etcd3"
)

Variables

This section is empty.

Functions

func ParseStorageEndpoint

func ParseStorageEndpoint(storageEndpoint string) (string, string)

Types

type Config

type Config struct {
	GRPCServer *grpc.Server
	Listener   string
	Endpoint   string

	tls.Config
}

type ETCDConfig

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

func Listen

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

func ListenAndReturnBackend

func ListenAndReturnBackend(ctx context.Context, config Config) (ETCDConfig, server.Backend, error)

Jump to

Keyboard shortcuts

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