api100

package
v0.0.0-...-022ae59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 13 Imported by: 0

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 ErrorResponse struct {
	Httpstatus   string `json:"httpstatus"`
	Errorcode    string `json:"errorcode"`
	Errormessage string `json:"errormessage"`
}

type FunklochClaims

type FunklochClaims struct {
	User   int             `json:"user"`
	Rights db100.UserRight `json:"rights"`
	jwt.StandardClaims
}

Holds claims for JWT authentication

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL