Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InternalServerErr = APIError{ Code: 10000, StatusCode: http.StatusInternalServerError, } EntityNotFoundErr = APIError{ StatusCode: http.StatusNotFound, } )
Functions ¶
func RegisterCache ¶
func RegisterLogger ¶
Types ¶
type APIMiddleware ¶
type APIMiddleware func(next APIHandler) APIHandler
type HTTP ¶
type HTTP struct { WrapAPIHandler func(fun APIHandler) http.Handler Router *pat.PatternServeMux }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.