server

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 35 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
	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