config

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IrisConfig = iris.Configuration{

	SocketSharding: true,

	DisableStartupLog: false,

	DisableInterruptHandler: false,

	DisablePathCorrection: false,

	DisablePathCorrectionRedirection: true,

	DisableBodyConsumptionOnUnmarshal: false,

	EnablePathIntelligence: false,

	EnablePathEscape: true,

	FireMethodNotAllowed: false,

	FireEmptyFormError: false,

	PostMaxMemory: 20 << 20,
}

IrisConfig iris配置

Functions

This section is empty.

Types

type Config

type Config struct {
	// 应用标识
	Name string `yaml:"name"`
	// 应用模式 dev/pro
	Mode string `yaml:"mode"`
	// 应用版本
	Version string `yaml:"version"`
	// 监听地址
	Listen string `yaml:"listen"`
	// 日志级别
	Level string `yaml:"level"`
	// 日志配置
	Logger string `yaml:"logger"`
	// MYSQL配置
	Mysql string `yaml:"mysql"`
	// SQLITE配置
	Sqlite string `yaml:"sqlite"`
	// 业务配置
	Business string `yaml:"business"`
}

func New

func New() *Config

Jump to

Keyboard shortcuts

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