Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Default405Body = []byte("405 method not allowed") Default404Body = []byte("404 page not found") )
Functions ¶
This section is empty.
Types ¶
type ServerConfig ¶
type ServerConfig struct { Network string `dsn:"network"` Addr string `dsn:"address"` Timeout xtime.Duration `dsn:"query.timeout"` ReadTimeout xtime.Duration `dsn:"query.readTimeout"` WriteTimeout xtime.Duration `dsn:"query.writeTimeout"` }
ServerConfig is the bm server config model
func ParseDSN ¶
func ParseDSN(rawdsn string) *ServerConfig
Click to show internal directories.
Click to hide internal directories.