config

package
v0.0.0-...-64eda92 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppConfig = Config{}

Functions

func Init

func Init()

Types

type Config

type Config struct {
	DefaultLanguage string        `mapstructure:"DefaultLanguage"`
	Logging         LoggingConfig `mapstructure:"Logging"`
}

type LoggingConfig

type LoggingConfig struct {
	Level      string `mapstructure:"Level"`
	Filename   string `mapstructure:"Filename"`
	MaxSize    int    `mapstructure:"MaxSize"`
	MaxBackups int    `mapstructure:"MaxBackups"`
	MaxAge     int    `mapstructure:"MaxAge"`
	Compress   bool   `mapstructure:"Compress"`
}

Jump to

Keyboard shortcuts

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