Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { Host string Port int16 Username string Password string Database string MaxIdleConns int MaxOpenConns int }
Database holds the base configuration for the application db storage
type Server ¶
type Server struct { Scheme string Host string Port int ReadTimeout int64 WriteTimeout int64 IdleTimeout int64 }
Server holds the base configuration for the http server ReadTimeout is the maximum duration for reading the entire request, including the body (seconds) WriteTimeout is the maximum duration before timing out writes the response (seconds) IdleTimeout is the maximum amount of time to wait for the next request when keep-alive is enabled (seconds)
Click to show internal directories.
Click to hide internal directories.