Documentation ¶
Index ¶
- func BadRequestServerError(l *zap.Logger, w http.ResponseWriter, r *http.Request, err error)
- func GetRemoteAddr(r *http.Request) string
- 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 InternalServiceTooEarly(l *zap.Logger, w http.ResponseWriter, r *http.Request, err error)
- func InternalServiceUnavailable(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 GetRemoteAddr ¶ added in v0.9.6
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 InternalServiceTooEarly ¶ added in v0.9.0
InternalServiceTooEarly http response
func InternalServiceUnavailable ¶ added in v0.9.0
InternalServiceUnavailable 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.