Documentation ¶
Index ¶
Constants ¶
View Source
const ReqIDKey = "req_id"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Cors CorsConfig TaosConfigDir string Debug bool Port int LogLevel string RestfulRowLimit int HttpCodeServerError bool SMLAutoCreateDB bool Log Log Pool Pool Monitor Monitor UploadKeeper UploadKeeper TMQ TMQ }
var (
Conf *Config
)
type CorsConfig ¶
type CorsConfig struct { AllowAllOrigins bool AllowOrigins []string AllowHeaders []string ExposeHeaders []string AllowCredentials bool AllowWebSockets bool }
func (*CorsConfig) GetConfig ¶
func (conf *CorsConfig) GetConfig() cors.Config
Source Files ¶
Click to show internal directories.
Click to hide internal directories.