Documentation ¶
Index ¶
Constants ¶
View Source
const ( CfgParamCoreAPI = "CoreAPI" CfgParamCoreXPXNode = "XPXNode" CfgParamNetworkType = "networkType" )
congig params in restMux
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessConf ¶ added in v1.0.14
type CfgHttp ¶
type CfgHttp struct { // list tokens to check requests KillSignal int `yaml:"KillSignal"` Server *fasthttp.Server `yaml:"Server"` Access AccessConf `yaml:"Access"` // contains filtered or unexported fields }
CfgHttp has some options for Acceptor work
func NewCfgHttp ¶
NewCfgHttp create CfgHttp from config file
func (*CfgHttp) Allow ¶ added in v1.0.19
func (cfg *CfgHttp) Allow(ctx *fasthttp.RequestCtx, addr string) bool
Click to show internal directories.
Click to hide internal directories.