eventstoredb

package
v0.0.0-...-81f6bf7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventStoreDB

func NewEventStoreDB(cfg EventStoreConfig, log logger.Logger) (*esdb.Client, error)

Types

type EventStoreConfig

type EventStoreConfig struct {
	ConnectionString   string `env:"EVENT_STORE_CONNECTION_STRING" validate:"required"`
	TlsDisable         bool   `env:"EVENT_STORE_CONNECTION_TLS_DISABLED" envDefault:"false"`
	TlsVerifyCert      bool   `env:"EVENT_STORE_CONNECTION_TLS_VERIFY_CERT" envDefault:"true"`
	KeepAliveTimeout   int    `env:"EVENT_STORE_CONNECTION_KEEP_ALIVE_TIMEOUT_MS" envDefault:"10000"`
	KeepAliveInterval  int    `env:"EVENT_STORE_CONNECTION_KEEP_ALIVE_INTERVAL_MS" envDefault:"10000"`
	ConnectionUser     string `env:"EVENT_STORE_CONNECTION_USERNAME"`
	ConnectionPassword string `env:"EVENT_STORE_CONNECTION_PASSWORD,unset"`
}

Jump to

Keyboard shortcuts

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