config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileServerStruct

type FileServerStruct struct {
	DirecoryPath string `mapstructure:"direcoryPath"`
}

func NewFileStruct

func NewFileStruct() *FileServerStruct

type LogConfig added in v0.0.2

type LogConfig struct {
	Level        string `mapstructure:"level"`
	Type         string `mapstructure:"type"`
	Path         string `mapstructure:"path"`
	MaxAge       int    `mapstructure:"maxAge"`
	RotationTime int    `mapstructure:"rotationTime"`
}

type ServerConfig

type ServerConfig struct {
	File   FileServerStruct `mapstructure:"fileServer"`
	Port   uint             `mapstructure:"port"`
	System SystemConfig     `mapstructure:"system"`
}

func NewSysConfig

func NewSysConfig() *ServerConfig

type SystemConfig

type SystemConfig struct {
	Debug      bool      `mapstructure:"debug"`
	Log        LogConfig `mapstructure:"log"`
	ApiPrefix  string    `mapstructure:"apiPrefix"`
	AppPath    string
	IsUnixLike bool
}

Jump to

Keyboard shortcuts

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