application

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config *config.Config
}

func NewApp

func NewApp() *App

NewApp creates a new application. You should call one more setup/Load functions to properly set it up.

func (*App) LoadConfig

func (a *App) LoadConfig(cmd *cobra.Command) error

LoadConfig loads the config. It takes an optional command. The command allows values to be overwritten from the CLI.

func (*App) SetupLogging

func (a *App) SetupLogging() error

func (*App) Shutdown

func (a *App) Shutdown() error

Jump to

Keyboard shortcuts

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