Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAuthMissing = fmt.Errorf("missing authentication to endpoint even though it's required") ErrAuthFailed = fmt.Errorf("invalid authentication parameters") ErrInvalidBody = fmt.Errorf("invalid request body") ErrNotFound = fmt.Errorf("resource was not found") ErrEmptyResponse = fmt.Errorf("empty response") ErrTooBigBody = fmt.Errorf("request body too big") ErrPasswordRequirementsNotMet = fmt.Errorf("password has to be between 8 and 32 charecters long") ErrUsernameRequirementsNotMet = fmt.Errorf("username has to be between 4 and 16 charecters long") )
Functions ¶
func BindBodyToStruct ¶
func SetErrResponse ¶
SetErrResponse helper for providing standard error messages in return
Types ¶
type Configuration ¶
type Limits ¶
type Limits struct { Requests int16 // Requests to allow Time time.Duration // Time to next reset in seconds }
Limits-struct is primarily used to configure the ratelimiting functionality
type Ratelimits ¶
type Server ¶
func (*Server) IncludeServerContextWorker ¶
func (*Server) NotFoundHandler ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.