config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: Apache-2.0 Imports: 1 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 {
	System *System              `mapstructure:"system" json:"system" yaml:"system"`
	Logger *logger.LoggerConfig `mapstructure:"logger" json:"logger" yaml:"logger"`
}

type System

type System struct {
	Port string `mapstructure:"port" json:"port" yaml:"port"`
	Mode string `mapstructure:"mode" json:"mode" yaml:"mode"`

	// 数据库类型:sqlite|sqlserver|postgresql|mysql
	DbType string `mapstructure:"db-type" json:"dbType" yaml:"db-type"`

	StaticPath     string `mapstructure:"static-path" json:"staticPath" yaml:"static-path"`
	EnableAuditLog bool   `mapstructure:"enable-audit-log" json:"enableAuditLog" yaml:"enable-audit-log"`
}

Jump to

Keyboard shortcuts

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