package
Version:
v1.0.8
Opens a new window with list of versions in this module.
Published: Feb 26, 2021
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ErrChecker(err error)
ErrChecker method for check error and show message
GetEnv function for getting environment variables values,
or return fallback
func Routes(app *fiber.App)
Routes list of the available routes for project
ValidateConfigPath just makes sure,
that the path provided is a file,
that can be read
type APIServer struct {
}
APIServer struct
NewServer method for init new server instance
Start method for start new server
type Config struct {
Server server `yaml:"server"`
Database database `yaml:"database"`
Static static `yaml:"static"`
}
Config struct for project config
NewConfig returns a new decoded Config struct
Source Files
¶
Click to show internal directories.
Click to hide internal directories.