endpoint

package
v0.9.9-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: Apache-2.0 Imports: 24 Imported by: 27

Documentation

Index

Constants

View Source
const (
	KineSocket       = "unix://kine.sock"
	SQLiteBackend    = "sqlite"
	DQLiteBackend    = "dqlite"
	ETCDBackend      = "etcd3"
	JetStreamBackend = "jetstream"
	MySQLBackend     = "mysql"
	PostgresBackend  = "postgres"
)

Variables

This section is empty.

Functions

func ParseStorageEndpoint

func ParseStorageEndpoint(storageEndpoint string) (string, string)

ParseStorageEndpoint returns the driver name and endpoint string from a datastore endpoint URL.

Types

type Config

type Config struct {
	GRPCServer           *grpc.Server
	Listener             string
	Endpoint             string
	ConnectionPoolConfig generic.ConnectionPoolConfig
	ServerTLSConfig      tls.Config
	BackendTLSConfig     tls.Config
	MetricsRegisterer    prometheus.Registerer
}

type ETCDConfig

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

func Listen

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

Jump to

Keyboard shortcuts

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