Documentation ¶
Index ¶
Constants ¶
View Source
const ( VERSION = "0.2.0" UserAgent = "Open-OAuth2Playground" )
Variables ¶
View Source
var (
ConfigFile string
)
Functions ¶
func InitLog ¶
func InitLog(l LoggerSection)
Types ¶
type EndpointConfig ¶
type EndpointConfig struct { Authorization string `json:"authorization"` Token string `json:"token"` Userinfo string `json:"userinfo"` }
EndpointConfig oauth endpoint 配置
type GlobalConfig ¶
type GlobalConfig struct { Logger LoggerSection `json:"logger"` Endpoints EndpointConfig `json:"endpoints"` IpLimit IpLimitConfig `json:"iplimit"` Http HttpConfig `json:"http"` TrustDomain []string `json:"trust_domain"` DefaultScope string `json:"default_scope"` Timeout int `json:"timeout"` }
GlobalConfig 全局配置
type HttpConfig ¶
type HttpConfig struct { RouteBase string `json:"route_base"` Listen string `json:"listen"` CORS []string `json:"cors"` TrustProxy []string `json:"trust_proxy"` }
HttpConfig Http 配置
type IpLimitConfig ¶
type LoggerSection ¶
Click to show internal directories.
Click to hide internal directories.