package
Version:
v0.0.0-...-663497b
Opens a new window with list of versions in this module.
Published: Sep 7, 2020
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
GetDocs will send the documents list
GetEnv function for getting environment variables values,
or return fallback
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.