server

package
v0.0.1-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() (*types.Config, error)

func ProvideDatabaseConfig

func ProvideDatabaseConfig(config *types.Config) database.Config

ProvideDatabaseConfig loads the database config from the main config.

func ProvideLockConfig

func ProvideLockConfig(config *types.Config) lock.Config

ProvideLockConfig generates the `lock` package config from the config.

func ProvidePubSubConfig

func ProvidePubSubConfig(config *types.Config) pubsub.Config

func ProvideRedis

func ProvideRedis(config *types.Config) (redis.UniversalClient, error)

ProvideRedis provides a redis client based on the configuration. TODO: add support for TLS.

func Register

func Register(app *kingpin.Application, initializer func(context.Context, *types.Config) (*System, error))

func SetupLogger

func SetupLogger(config *types.Config)

SetupLogger configures the global logger from the loaded configuration.

func SetupProfiler

func SetupProfiler(config *types.Config)

Types

type System

type System struct {
	// contains filtered or unexported fields
}

System stores high level System sub-routines.

func NewSystem

func NewSystem(
	bootstrap bootstrap.Bootstrap,
	server *server.Server,
	agent *agent.Agent,
	services services.Services,
	background *background.Service,
) *System

NewSystem returns a new system structure.

Jump to

Keyboard shortcuts

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