Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
Addr string `yaml:"addr" json:"addr"`
Timeout time.Duration `yaml:"timeout" json:"timeout"`
}
Client client
type GRPC ¶
type GRPC struct {
Addr string `yaml:"addr" json:"addr"` // default: :9090
CertFile string `yaml:"certFile" json:"certFile"`
KeyFile string `yaml:"keyFile" json:"keyFile"`
Timeout int `yaml:"timeout" json:"timeout"` // default: 10
}
GRPC grpc服务公共配置(选用)
type Listen ¶
type Logger ¶
type Logger struct {
Type string `yaml:"type" json:"type"`
Path string `yaml:"path" json:"path"`
Level string `yaml:"level" json:"level"`
Stdout string `yaml:"stdout" json:"stdout"`
Cap uint `yaml:"cap" json:"cap"`
Formatter string `yaml:"formatter" json:"formatter"`
}
Logger logger配置
type OAuth2 ¶
type OAuth2 struct {
Issuer string `yaml:"issuer" json:"issuer"`
ClientID string `yaml:"clientID" json:"clientID"`
ClientSecret string `yaml:"clientSecret" json:"clientSecret"`
Scopes []string `yaml:"scopes" json:"scopes"`
RedirectURL string `yaml:"redirectURL" json:"redirectURL"`
}
OAuth2 holds the configuration for the OAuth2 provider.
func (*OAuth2) GetClientID ¶
GetClientID returns the OAuth2 client ID.
func (*OAuth2) GetClientSecret ¶
GetClientSecret returns the OAuth2 client secret.
func (*OAuth2) GetOAuth2Config ¶
GetOAuth2Config returns an oauth2.Config.
func (*OAuth2) GetRedirectURL ¶
GetRedirectURL returns the OAuth2 redirect URL.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.