Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckToken ¶
func CheckToken(h http.HandlerFunc) http.HandlerFunc
CheckToken - Checking token wrap.
func NotifyChan ¶
NotifyChan Linking in chan to os terminate signals.
func Respond ¶
func Respond(w http.ResponseWriter, data map[string]interface{}, stCode int)
Respond - create HTTP answer with data field and stCode for status
func RespondError ¶
func RespondError(writer http.ResponseWriter, err error, status int)
RespondError - Sending error response
func WaitSignals ¶
Types ¶
type SimpleError ¶
SimpleError Common error struct (for sending to web).
func MakeErr ¶
func MakeErr(err string) SimpleError
Click to show internal directories.
Click to hide internal directories.