server

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTLSCredentials

func LoadTLSCredentials(config c.AppConfig, logger l.Logger) (credentials.TransportCredentials, error)

LoadTLSCredentials creates TLS credentials from the configured certificate files.

func Run

func Run(ctx context.Context, config c.AppConfig, AppLogger l.Logger, initializeBackend BackendInitializer)

Types

type Backend

type Backend struct {
	SaveEvents        orisun.EventsSaver
	GetEvents         orisun.EventsRetriever
	LockProvider      orisun.LockProvider
	AdminDB           common.DB
	EventPublishing   orisun.EventPublishingTracker
	SignalProvider    func(string) orisun.EventSignal
	ProvisionBoundary boundaryprovisioning.ProvisionBoundary
	InstallBoundary   boundaryprovisioning.InstallBoundary
	InitialBoundaries []string
	LegacyBoundaries  []boundarymodel.Definition
	Start             func(context.Context)
	Close             func(context.Context)
}

type BackendInitializer

type BackendInitializer func(context.Context, c.AppConfig, jetstream.JetStream, l.Logger) (Backend, error)

Jump to

Keyboard shortcuts

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