Documentation
¶
Index ¶
- type Handler
- type Handlers
- func (hh *Handlers) Add(cfg *config.Listener, ah Handler) (err error)
- func (hh *Handlers) Check(id uint64, prefix string, path string, permissions misc.BoolMap, ...) (identity *Identity, code int, msg string)
- func (hh *Handlers) Enabled() bool
- func (hh *Handlers) WriteAuthRequestHeaders(w http.ResponseWriter, prefix string, path string)
- type Identity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
Init(cfg *config.Listener) error
Enabled() bool
WWWAuthHeader() (name string, withRealm bool)
Check(id uint64, prefix string, path string, w http.ResponseWriter, r *http.Request) (identity *Identity, tryNext bool)
}
Handler --
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
Handlers --
func (*Handlers) Check ¶
func (hh *Handlers) Check(id uint64, prefix string, path string, permissions misc.BoolMap, w http.ResponseWriter, r *http.Request) (identity *Identity, code int, msg string)
Check --
func (*Handlers) WriteAuthRequestHeaders ¶
func (hh *Handlers) WriteAuthRequestHeaders(w http.ResponseWriter, prefix string, path string)
WriteAuthRequestHeaders --
Click to show internal directories.
Click to hide internal directories.