Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type HeaderAuthorizer ¶
type HeaderAuthorizer struct {
// contains filtered or unexported fields
}
func NewHeaderAuthorizer ¶
func NewHeaderAuthorizer(headerName string, headerValues []string) *HeaderAuthorizer
func (HeaderAuthorizer) IsAuthorized ¶
func (h HeaderAuthorizer) IsAuthorized(r *http.Request) bool
type UserAgentAuthorizer ¶
type UserAgentAuthorizer struct {
// contains filtered or unexported fields
}
func NewUserAgentAuthorizer ¶
func NewUserAgentAuthorizer(userAgents []string) *UserAgentAuthorizer
func (UserAgentAuthorizer) IsAuthorized ¶
func (u UserAgentAuthorizer) IsAuthorized(r *http.Request) bool
Click to show internal directories.
Click to hide internal directories.