cmd

package
v0.7.1-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StaticFiles embed.FS

StaticFiles will be set from the main package

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func LoadConfig

func LoadConfig(configPath string) error

LoadConfig loads the config file into the global appConfig variable If the config path is empty, the current working directory will be used

Types

type SharedComponents

type SharedComponents struct {
	DB                 *sqlx.DB
	Core               *core.Core
	Scheduler          *scheduler.Scheduler
	Metrics            *metrics.Manager
	Logger             *slog.Logger
	Keeper             *secrets.Keeper
	Messengers         map[string]messengers.Messenger
	ExecutorSigningKey []byte
}

SharedComponents holds components that are shared between server and worker

func (*SharedComponents) Cleanup

func (s *SharedComponents) Cleanup()

Cleanup cleans up all shared resources

Jump to

Keyboard shortcuts

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