Documentation ¶
Index ¶
- func Graceful(s *http.Server, timeout time.Duration, logger logging.Logger) error
- func PrintServerBanner(name, version, build, env, addr string)
- func ReadConfig(envPrefix string, getCfg func() interface{}) (hostname string, port int, basePath string, conf interface{})
- func Run(opt RunOptions) (err error)
- func SetupBasicRouter(basePath string, cookieSettings config.ApplicationCookies, ...) chi.Router
- func SetupSecureAPIRouter(errorPath string, jwtOptions config.Security, ...) chi.Router
- type RunOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintServerBanner ¶
func PrintServerBanner(name, version, build, env, addr string)
PrintServerBanner put some nice emojis on the console
func ReadConfig ¶
func ReadConfig(envPrefix string, getCfg func() interface{}) (hostname string, port int, basePath string, conf interface{})
ReadConfig parses supplied application parameters and reads the application config file
func SetupBasicRouter ¶
func SetupBasicRouter(basePath string, cookieSettings config.ApplicationCookies, corsConfig config.CorsSettings, assets config.AssetSettings, logger logging.Logger) chi.Router
SetupBasicRouter configures typically used middleware components
Types ¶
Click to show internal directories.
Click to hide internal directories.