Documentation
¶
Overview ¶
Package bootstrap will own top-level process startup for the Go port.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatLocalTimestamp ¶
func LogFilePath ¶
Types ¶
type CreateLoggerFunc ¶
type CreateLoggerFunc func(config.LoggingConfig, string, LoggerOptions) (Logger, error)
type LoadConfigFunc ¶
type LoadConfigFunc func(config.LoadFileOptions) (config.LoadedFileConfig, error)
type Logger ¶
type Logger interface {
Debug(message string, context map[string]any)
Info(message string, context map[string]any)
Warn(message string, context map[string]any)
Error(message string, context map[string]any)
}
func CreateLogger ¶
func CreateLogger(cfg config.LoggingConfig, logDir string, options LoggerOptions) (Logger, error)
type LoggerOptions ¶
type Options ¶
type Options struct {
Args []string
Env map[string]string
CWD string
Stdout io.Writer
Stderr io.Writer
LoadConfig LoadConfigFunc
CreateLogger CreateLoggerFunc
StartRuntime StartRuntimeFunc
WaitForShutdown bool
SignalNotifier SignalNotifier
}
type Result ¶
type RuntimeDependencies ¶
type RuntimeDependencies struct {
Config config.Config
Metadata config.LoadFileMetadata
Logger Logger
}
type ShutdownRuntime ¶
type ShutdownRuntime interface {
Stop(reason string)
WaitForShutdown()
}
type SignalNotifier ¶
type StartRuntimeFunc ¶
type StartRuntimeFunc func(context.Context, RuntimeDependencies) (Runtime, error)
Click to show internal directories.
Click to hide internal directories.