config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SecretKey       string `required:"true"`
	DBPath          string `required:"true"`
	LogLevel        string `default:"warning"`
	EnableGinLogger bool   `default:"false"`
	Production      bool   `default:"true"`
	HeaderAuth      bool   `default:"false"`
	DefaultUsername string
	DefaultPassword string
}

func GetConfig

func GetConfig() (*Config, error)

func (*Config) GetLogLevel

func (cfg *Config) GetLogLevel() logrus.Level

Jump to

Keyboard shortcuts

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