Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthJWTEncoding ¶
type AuthJWTEncoding struct {
Method string `yaml:"method,omitempty"`
SK string `yaml:"sk,omitempty"`
PublicKey string `yaml:"publicKey,omitempty"`
PrivateKey string `yaml:"privateKey,omitempty"`
Issuer string `yaml:"issuer,omitempty"`
Audience []string `yaml:"audience,omitempty"`
Expirations string `yaml:"expirations,omitempty"`
}
type Cluster ¶
type Cluster struct {
DevMode bool `yaml:"devMode"`
NodesProxyAddress string `yaml:"nodesProxyAddress"`
Kind string `yaml:"kind,omitempty"`
Client ClusterClient `yaml:"client,omitempty"`
Options map[string]interface{} `yaml:"options,omitempty"`
}
type ClusterClient ¶
type Config ¶
type Config struct {
Name string `yaml:"name,omitempty"`
Runtime *Runtime `yaml:"runtime,omitempty"`
Log *LogConfig `yaml:"log,omitempty"`
OAS *OAS `yaml:"oas,omitempty"`
Server *Server `yaml:"server,omitempty"`
Cluster *Cluster `yaml:"cluster,omitempty"`
Authorizations *Auth `yaml:"authorizations,omitempty"`
SQL *SQL `yaml:"sql,omitempty"`
}
type OAS ¶
type OAS struct {
Title string `yaml:"title,omitempty"`
Description string `yaml:"description,omitempty"`
Terms string `yaml:"terms,omitempty"`
Contact *OASContact `yaml:"contact,omitempty"`
License *OASLicense `yaml:"license,omitempty"`
Servers []OASServer `yaml:"servers,omitempty"`
}
type OASContact ¶
type OASLicense ¶
type SQL ¶ added in v1.10.0
type SQL struct {
Driver string `yaml:"driver"`
MasterSlaverMode bool `yaml:"masterSlaverMode"`
DSN []string `yaml:"dsn"`
MaxIdles int `yaml:"maxIdles"`
MaxOpens int `yaml:"maxOpens"`
EnableDebugLog bool `yaml:"enableDebugLog"`
GTMCleanUpSecond int `yaml:"gtmCleanUpSecond"`
Isolation int `yaml:"isolation"`
}
type Server ¶
type Server struct {
Port int `yaml:"port,omitempty"`
Cors *Cors `yaml:"cors,omitempty"`
TLS *TLS `yaml:"tls,omitempty"`
Options json.RawMessage `yaml:"options,omitempty"`
Interceptors map[string]json.RawMessage `yaml:"interceptors,omitempty"`
}
type TLS ¶
type TLS struct {
// Kind
// ACME
// SSC(SELF-SIGN-CERT)
// DEFAULT
Kind string `yaml:"kind,omitempty"`
Options json.RawMessage `yaml:"options,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.