Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNewSubrouter ¶
func GetNewSubrouter(prefix string) (*mux.Router, *interpose.Middleware)
func GetSubrouter ¶
func GetSubrouter(prefix string) *interpose.Middleware
Types ¶
type APIErrorcode ¶
type APIErrorcode int
const ( ERROR_WRONGCREDENTIALS APIErrorcode = 1 + iota ERROR_DBQUERYFAILED ERROR_MALFORMEDAUTH ERROR_NOHASH ERROR_NOTOKEN ERROR_JSONERROR ERROR_FILEERROR ERROR_FILEHASH ERROR_USERNOTAUTHORIZED ERROR_INVALIDPARAMETER ERROR_NOTFOUND )
func (*APIErrorcode) String ¶
func (e *APIErrorcode) String() string
type ErrorResponse ¶
type FunklochClaims ¶
type FunklochClaims struct { User int `json:"user"` Rights db100.UserRight `json:"rights"` jwt.StandardClaims }
Holds claims for JWT authentication
Click to show internal directories.
Click to hide internal directories.