server

package
v0.0.2-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 28 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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