Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigMap = map[string]any{}
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.4.22
type Config struct {
Key string `json:"key,omitempty"`
Web Web `json:"web"`
Grpc Grpc `json:"grpc"`
Security Security `json:"security"`
SQLs map[string]SQL `json:"sql,omitempty"`
Smtp map[string]Smtp `json:"smtp,omitempty"`
Others map[string]any `json:"others,omitempty"`
EnvFile string `json:"env_file,omitempty"`
IsTesting bool `json:"is_testing,omitempty"`
Forever bool `json:"-"`
}
type Web ¶
type WebCors ¶
type WebCors struct {
Enabled bool `json:"enabled,omitempty"`
AllowOrigins string `json:"allow_origins,omitempty"`
AllowCredentials bool `json:"allow_credentials,omitempty"`
AllowMethods string `json:"allow_methods,omitempty"`
AllowHeaders string `json:"allow_headers,omitempty"`
MaxAge int `json:"max_age,omitempty"`
ExposeHeaders string `json:"expose_headers,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.