Documentation
¶
Index ¶
Constants ¶
View Source
const ( UserIDHeader = "NYUM-User-ID" AuthorizationHeader = "Authorization" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func NewMiddleware(d *daemon.Daemon) *Middleware
func (*Middleware) AllowAdmin ¶
func (m *Middleware) AllowAdmin(next http.Handler) http.Handler
AllowAdmin middleware ensures that the user is an admin
Click to show internal directories.
Click to hide internal directories.