Documentation ¶
Index ¶
- func BadRequestServerError(l *zap.Logger, w http.ResponseWriter, r *http.Request, err error)
- func GetRequestDomain(r *http.Request) string
- func GetRequestHost(r *http.Request) string
- func HashBasicAuthPassword(v []byte) ([]byte, error)
- func InternalServerError(l *zap.Logger, w http.ResponseWriter, r *http.Request, err error)
- func NotFoundServerError(l *zap.Logger, w http.ResponseWriter, r *http.Request, err error)
- func ServerError(l *zap.Logger, w http.ResponseWriter, r *http.Request, code int, err error)
- func UnauthorizedServerError(l *zap.Logger, w http.ResponseWriter, r *http.Request, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequestServerError ¶
BadRequestServerError http response
func GetRequestDomain ¶ added in v0.2.0
GetRequestDomain returns the request's domain
func GetRequestHost ¶ added in v0.2.0
GetRequestHost returns the request's host
func HashBasicAuthPassword ¶ added in v0.2.0
func InternalServerError ¶
InternalServerError http response
func NotFoundServerError ¶
NotFoundServerError http response
func ServerError ¶
ServerError http response
func UnauthorizedServerError ¶
UnauthorizedServerError http response
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.