Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CONFIG = Web{ MaxSize: 1024, Except: Route{ Uri: "", Method: "", }, System: System{ Tls: false, Level: "debug", Addr: "127.0.0.1:8085", DbType: "mysql", TimeFormat: "2006-01-02 15:04:05", }, Limit: Limit{ Disable: true, Limit: 0, Burst: 5, }, Captcha: Captcha{ KeyLong: 4, ImgWidth: 240, ImgHeight: 80, }, }
Functions ¶
Types ¶
type System ¶ added in v1.1.2
type System struct { Tls bool `mapstructure:"tls" json:"tls" yaml:"tls"` // debug,release,test Level string `mapstructure:"level" json:"level" yaml:"level"` // debug,release,test Addr string `mapstructure:"addr" json:"addr" yaml:"addr"` StaticPrefix string `mapstructure:"static-prefix" json:"static-prefix" yaml:"static-prefix"` WebPrefix string `mapstructure:"web-prefix" json:"web-prefix" yaml:"web-prefix"` DbType string `mapstructure:"db-type" json:"db-type" yaml:"db-type"` TimeFormat string `mapstructure:"time-format" json:"time-format" yaml:"time-format"` }
type Web ¶ added in v1.1.2
type Web struct { MaxSize int64 `mapstructure:"max-size" json:"burst" yaml:"max-size"` Except Route `mapstructure:"except" json:"except" yaml:"except"` System System `mapstructure:"system" json:"system" yaml:"system"` Limit Limit `mapstructure:"limit" json:"limit" yaml:"limit"` Captcha Captcha `mapstructure:"captcha" json:"captcha" yaml:"captcha"` }
type WebBaseFunc ¶ added in v1.1.2
type WebFunc ¶
type WebFunc interface { WebBaseFunc }
WebFunc 框架服务接口 - GetTestClient 测试客户端 - GetTestLogin 测试登录 - AddWebStatic 添加静态页面 - AddUploadStatic 上传文件路径 - Run 启动
Click to show internal directories.
Click to hide internal directories.