models

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleFormat

type ConsoleFormat struct {
	TimeFormat   string
	NoColor      bool
	PartsOrder   []string
	PartsExclude []string
}

ConsoleFormat 定义控制台输出格式的配置

func DefaultConsoleFormat

func DefaultConsoleFormat() ConsoleFormat

DefaultConsoleFormat 返回默认的控制台格式配置

type DefaultKV

type DefaultKV struct {
	Key   string
	Value interface{}
}

DefaultKV 定义默认配置的键值对结构

type LoggerConfig

type LoggerConfig struct {
	LogToConsole bool   `yaml:"logToConsole"`
	LogToFile    bool   `yaml:"logToFile"`
	LogFilePath  string `yaml:"logFilePath"`
	MaxFileSize  int    `yaml:"maxFileSize"`
	MaxBackups   int    `yaml:"maxBackups"`
	MaxAge       int    `yaml:"maxAge"`
}

Jump to

Keyboard shortcuts

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