endpoint

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

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

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