cmd

package
v0.16.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 52 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

View Source
var StaticFiles embed.FS

StaticFiles will be set from the main package

Functions

func CleanupPlugins added in v0.9.0

func CleanupPlugins()

CleanupPlugins kills all external plugin processes.

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