Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAllowedUserAgent ¶
CheckAllowedUserAgent 检查UA是否在白名单
Types ¶
type ApiConfig ¶
type ApiConfig struct { Enabled bool `yaml:"enabled" json:"enabled"` Port int `yaml:"port" json:"port"` UserAgentAllowed []string `yaml:"user_agent_allowed" json:"user_agent_allowed"` APIMethodsAllowed []string `yaml:"api_methods_allowed" json:"api_methods_allowed"` }
var (
CurrentApiConfig *ApiConfig
)
Click to show internal directories.
Click to hide internal directories.