application

package
v3.15.4 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 20 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 {
	AppName   string
	AppConfig *config.AppConfig
	// contains filtered or unexported fields
}

func NewApp

func NewApp(appName string) *App

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

func (*App) GetConfig

func (a *App) GetConfig() *config.Config

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) SetupOTEL

func (a *App) SetupOTEL() error

SetupOTEL sets up OpenTelemetry. Call this function if you want to enable OpenTelemetry.

func (*App) SetupServerLogging

func (a *App) SetupServerLogging() 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