package
Version:
v0.0.0-...-0ce3674
Opens a new window with list of versions in this module.
Published: Apr 26, 2021
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type DebugCfg struct {
Verbose bool `json:"verbose" short:"V" long:"verbose" description:"show verbose debug information"`
IsMock bool `json:"mock" short:"m" long:"mock" description:"mock sample data"`
IsFile bool `json:"file" short:"f" long:"file" description:"set database as file mode"`
}
type JwtCfg struct {
Key string `json:"key" short:"K" long:"key" description:"private key(elliptic P521) to sign JWT token"`
PrivateKey *ecdsa.PrivateKey `json:"-"`
PublicKey *ecdsa.PublicKey `json:"-"`
}
type ServerCfg struct {
Domain string `json:"domain" long:"domain" description:"bind domain" default:"http://127.0.0.1:9999"`
AllowedOrigins []string `json:"allowedOrigins" long:"allowedOrigins" description:"AllowedOrigins of CORS" default:"*"`
}
type SonataCfg struct {
Server *ServerCfg `json:"server"`
Jwt *JwtCfg `json:"jwt"`
Debug *DebugCfg `json:"debug"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.