Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Error_Auth_Path_NotFound = New(http.StatusNotFound, "auth path not found") Error_Auth_Miss_Token = New(http.StatusUnauthorized, "miss token") Error_Auth_Invalid_Token = New(http.StatusUnauthorized, "invalid token") Error_Auth_Host_Not_Match = New(http.StatusUnauthorized, "host not match") Error_Auth_No_Perm = New(http.StatusUnauthorized, "no permission") )
Functions ¶
This section is empty.
Types ¶
type ApiErrorHandler ¶
type ApiErrorHandler interface {
SetApiErrorHandler(GinApiErrorHandler)
}
type CommonApiErrorHandler ¶
type CommonApiErrorHandler struct {
GinApiErrorHandler
}
func (*CommonApiErrorHandler) SetApiErrorHandler ¶
func (api *CommonApiErrorHandler) SetApiErrorHandler(handler GinApiErrorHandler)
type GinApiErrorHandler ¶
Click to show internal directories.
Click to hide internal directories.