Versions in this module Expand all Collapse all v1 v1.1.0 Apr 20, 2020 Changes in this version + var ErrMissingFile = errors.New("missing upload file") + func UserAttributeHandler(handlerData web.HandlerData, w http.ResponseWriter, r *http.Request) v1.0.0 Apr 5, 2020 Changes in this version + var AllowedSchemes = []string + var ErrorTokenEmpty error = errors.New("Token empty") + var ErrorTokenInvalid error = errors.New("Token invalid") + func AttributeHandler(handlerData web.HandlerData, w http.ResponseWriter, r *http.Request) + func FileHandler(handlerData web.HandlerData, w http.ResponseWriter, r *http.Request) + func ListFilesHandler(handlerData web.HandlerData, w http.ResponseWriter, r *http.Request) + func LogError(err error, context ...map[string]interface{}) bool + func Login(handlerData web.HandlerData, w http.ResponseWriter, r *http.Request) + func NamespaceActionHandler(handlerData web.HandlerData, w http.ResponseWriter, r *http.Request) + func NamespaceListHandler(handlerData web.HandlerData, w http.ResponseWriter, r *http.Request) + func NewRouter(config *models.Config, db *gorm.DB) *mux.Router + func Ping(handlerData web.HandlerData, w http.ResponseWriter, r *http.Request) + func Register(handlerData web.HandlerData, w http.ResponseWriter, r *http.Request) + func RouteHandler(requestType requestType, handlerData *web.HandlerData, inner RouteFunction, ...) http.Handler + func UploadfileHandler(handlerData web.HandlerData, w http.ResponseWriter, r *http.Request) + type AuthHandler struct + Request *http.Request + func NewAuthHandler(request *http.Request) *AuthHandler + func (authHandler AuthHandler) GetBearer() string + func (authHandler AuthHandler) IsInvalid(err error) bool + type HTTPMethod string + const DeleteMethod + const GetMethod + const POSTMethod + const PUTMethod + type Route struct + HandlerFunc RouteFunction + HandlerType requestType + Method HTTPMethod + Name string + Pattern string + type RouteFunction func(web.HandlerData, http.ResponseWriter, *http.Request) + type Routes []Route