Documentation
¶
Index ¶
- Variables
- func AddEndpoint(routeInfo Route, m ...echo.MiddlewareFunc)
- func AddStatic(routeInfo Route, m ...echo.MiddlewareFunc)
- func ConnectDB(db_name string)
- func DELETE(routeInfo Route, m ...echo.MiddlewareFunc)
- func GET(routeInfo Route, m ...echo.MiddlewareFunc)
- func Init(args []string, logLevel string)
- func InitDB(dbString string) (*sql.DB, error)
- func InitLogger(logLevel string)
- func Migrate(db *sql.DB, filename string)
- func POST(routeInfo Route, m ...echo.MiddlewareFunc)
- func PUT(routeInfo Route, m ...echo.MiddlewareFunc)
- func SetLogLevel(level string)
- func Start()
- type Configuration
- type Route
Constants ¶
This section is empty.
Variables ¶
View Source
var Databases map[string]*sql.DB
View Source
var Routes map[string]Route
View Source
var Server *echo.Echo
Functions ¶
func AddEndpoint ¶
func AddEndpoint(routeInfo Route, m ...echo.MiddlewareFunc)
func AddStatic ¶
func AddStatic(routeInfo Route, m ...echo.MiddlewareFunc)
func ConnectDB ¶
func ConnectDB(db_name string)
ConnectDB connects to the database server, creates the passed DB name if it doesn't exists and sets it as the current DB. It then stores the DB object into the public Databases object for later use.
func DELETE ¶
func DELETE(routeInfo Route, m ...echo.MiddlewareFunc)
func GET ¶
func GET(routeInfo Route, m ...echo.MiddlewareFunc)
func InitLogger ¶
func InitLogger(logLevel string)
func POST ¶
func POST(routeInfo Route, m ...echo.MiddlewareFunc)
func PUT ¶
func PUT(routeInfo Route, m ...echo.MiddlewareFunc)
func SetLogLevel ¶
func SetLogLevel(level string)
Types ¶
type Configuration ¶
type Configuration struct {
// contains filtered or unexported fields
}
var Config Configuration
Click to show internal directories.
Click to hide internal directories.
