Documentation ¶
Index ¶
- Constants
- func NewBasicAuthHandler() *basicAuthHandler
- func NewCsrfHandler() *csrfHandler
- func NewHeadersHandler() *headersHandler
- func NewOauthHandler() *oauthHandler
- func NewQueryParamsHandler() *queryParamsHandler
- func StatusOK(w http.ResponseWriter, r *http.Request)
- type AppMockServer
- type ErrorHandler
- type ErrorResponse
Constants ¶
View Source
const (
AuthorizationHeader = "Authorization"
)
View Source
const (
HeaderCSRFToken = "X-csrf-token"
)
Variables ¶
This section is empty.
Functions ¶
func NewBasicAuthHandler ¶
func NewBasicAuthHandler() *basicAuthHandler
func NewCsrfHandler ¶
func NewCsrfHandler() *csrfHandler
func NewHeadersHandler ¶
func NewHeadersHandler() *headersHandler
func NewOauthHandler ¶
func NewOauthHandler() *oauthHandler
func NewQueryParamsHandler ¶
func NewQueryParamsHandler() *queryParamsHandler
Types ¶
type AppMockServer ¶
func NewAppMockServer ¶
func NewAppMockServer(port int32) *AppMockServer
func (*AppMockServer) Kill ¶
func (ams *AppMockServer) Kill() error
func (*AppMockServer) Start ¶
func (ams *AppMockServer) Start()
type ErrorHandler ¶
func NewErrorHandler ¶
func NewErrorHandler(code int, message string) *ErrorHandler
func (*ErrorHandler) ServeHTTP ¶
func (eh *ErrorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.