Documentation ¶ Index ¶ Variables func CheckOptions(r *http.Request, w http.ResponseWriter) bool func HandleAuth(next http.Handler) http.Handler func HandleOptions(next http.Handler) http.Handler type HttpError func (e HttpError) Serialize() []byte Constants ¶ This section is empty. Variables ¶ View Source var ( ErrMissingAuth = errors.New("missing basic auth") ErrInvalidAuth = errors.New("invalid auth") ) Functions ¶ func CheckOptions ¶ func CheckOptions(r *http.Request, w http.ResponseWriter) bool func HandleAuth ¶ func HandleAuth(next http.Handler) http.Handler func HandleOptions ¶ func HandleOptions(next http.Handler) http.Handler Types ¶ type HttpError ¶ type HttpError struct { Message string `json:"msg"` Code int `json:"code"` } func (HttpError) Serialize ¶ func (e HttpError) Serialize() []byte Source Files ¶ View all Source files auth.go errors.go helpers.go options.go Click to show internal directories. Click to hide internal directories.