Documentation
¶
Overview ¶
Package config provides a struct that can store json type config file
Package config provides a struct that can store json type config file
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GrpcServer ¶
type GrpcServer struct {
Address string `json:"address"`
Log struct {
Level string `json:"level"`
Output string `json:"output"`
File struct {
Name string `json:"name"`
ExtensionName string `json:"extensionName"`
AddDate bool `json:"addDate"`
} `json:"file"`
WithCallerInfo bool `json:"withCallerInfo"`
} `json:"log"`
}
type HttpServer ¶
type HttpServer struct {
SwaggerAddress string `json:"swagger_address"`
SwaggerUri string `json:"swagger_uri"`
ServerAddress string `json:"server_address"`
ShutdownTimeout uint64 `json:"shutdownTimeout"`
Log struct {
Level string `json:"level"`
Output string `json:"output"`
File struct {
Name string `json:"name"`
ExtensionName string `json:"extensionName"`
AddDate bool `json:"addDate"`
} `json:"file"`
WithCallerInfo bool `json:"withCallerInfo"`
} `json:"log"`
}
type LongPollingServer ¶
type LongPollingServer struct {
Address string `json:"address"`
Timeout int `json:"timeout"`
ShutdownTimeout uint64 `json:"shutdownTimeout"`
SubscriptionURI string `json:"subscription_uri"`
PublishURI string `json:"publish_uri"`
FilePersistorInfo struct {
Use bool `json:"use"`
FileName string `json:"file_name"`
WriteBufferSize int `json:"write_buffer_size"`
WriteFlushPeriodSeconds int `json:"write_flush_period_seconds"`
} `json:"file_persistor_info"`
Log struct {
Level string `json:"level"`
Output string `json:"output"`
File struct {
Name string `json:"name"`
ExtensionName string `json:"extensionName"`
AddDate bool `json:"addDate"`
} `json:"file"`
WithCallerInfo bool `json:"withCallerInfo"`
} `json:"log"`
}
type SocketServer ¶
type SocketServer struct {
Address string `json:"address"`
ClientPoolSize int `json:"client_pool_size"`
Log struct {
Level string `json:"level"`
Output string `json:"output"`
File struct {
Name string `json:"name"`
ExtensionName string `json:"extensionName"`
AddDate bool `json:"addDate"`
} `json:"file"`
WithCallerInfo bool `json:"withCallerInfo"`
} `json:"log"`
}
Click to show internal directories.
Click to hide internal directories.