Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorNotFound = errors.New("NotFound") ErrorConflict = errors.New("Conflict") )
View Source
var ( Config = struct { DB struct { Host string `required:"true"` User string `default:"admin"` Password string `default:"admin"` Port int `default:"3306"` Name string `required:"true"` } }{} )
View Source
var DB = new(sql.DB)
Functions ¶
func ConnectDatabase ¶
func ConnectDatabase()
func LoadConfig ¶
func LoadConfig()
func RedisSession ¶
func RedisSession() echo.MiddlewareFunc
func SessionAuth ¶
func SessionAuth(next echo.HandlerFunc) echo.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.