Documentation
¶
Index ¶
- Variables
- func GetConn() *sql.DB
- func GetISOTimeNow() string
- func GetStoreTimeNow() string
- func HandleException(w http.ResponseWriter, req *http.Request, next NextFunc) error
- func HandlerCompose(middlewares ...MiddleWare) http.HandlerFunc
- func LogRequest(w http.ResponseWriter, req *http.Request, next NextFunc) error
- func SendData(w http.ResponseWriter, data string, msg string, status int) error
- type Exception
- type MiddleWare
- type NextFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
Functions ¶
func GetISOTimeNow ¶
func GetISOTimeNow() string
func GetStoreTimeNow ¶
func GetStoreTimeNow() string
func HandleException ¶
func HandlerCompose ¶
func HandlerCompose(middlewares ...MiddleWare) http.HandlerFunc
func LogRequest ¶
Types ¶
type MiddleWare ¶
Click to show internal directories.
Click to hide internal directories.