app

package
v0.0.0-...-67f943a Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Name,
	Repository,
	Package,
	Version,
	BuildDate,
	BuildUser,
	GitBranch,
	GitTag,
	GitHash,
	Image string
)

Functions

This section is empty.

Types

type App

type App struct {
	DebugFlag bool            `yaml:"debug" json:"debug" mapstructure:"debug"`
	ConfigDir string          `yaml:"config-dir" json:"config_dir" mapstructure:"config-dir"`
	DataDir   string          `yaml:"data-dir" json:"data_dir" mapstructure:"data-dir"`
	LogDir    string          `yaml:"log-dir" json:"log_dir" mapstructure:"log-dir"`
	Logger    *logging.Logger `yaml:"-" json:"-" mapstructure:"-"`
}

func NewApp

func NewApp() *App

func (*App) Init

func (app *App) Init()

func (*App) InitLogFile

func (app *App) InitLogFile(uid, gid int) *os.File

type AppVersion

type AppVersion struct {
	Name       string `json:"name"`
	Repository string `json:"repository"`
	Package    string `json:"package"`
	Version    string `json:"version"`
	GitBranch  string `json:"gitBranch"`
	GitTag     string `json:"gitTag"`
	GitHash    string `json:"gitHash"`
	BuildDate  string `json:"buildDate"`
	BuildUser  string `json:"buildUser"`
}

func GetVersion

func GetVersion() *AppVersion

Jump to

Keyboard shortcuts

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