Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCallback ¶
type AuthCallback struct {
// contains filtered or unexported fields
}
func NewAuthCallback ¶
func NewAuthCallback(consumers *Consumers, key string) *AuthCallback
func (*AuthCallback) ServeHTTP ¶
func (ac *AuthCallback) ServeHTTP(w http.ResponseWriter, r *http.Request)
type AuthCredentials ¶
type AuthMonitor ¶
type AuthMonitor struct {
// contains filtered or unexported fields
}
func NewAuthMonitor ¶
func NewAuthMonitor(consumers *Consumers, key string) *AuthMonitor
func (*AuthMonitor) ServeHTTP ¶
func (am *AuthMonitor) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Consumers ¶
type Consumers struct {
// contains filtered or unexported fields
}
func NewConsumers ¶
func NewConsumers() *Consumers
type Server ¶
type TokenGenerator ¶
type TokenGenerator struct {
// contains filtered or unexported fields
}
func NewTokenGenerator ¶
func NewTokenGenerator(key string) *TokenGenerator
func (*TokenGenerator) ServeHTTP ¶
func (tg *TokenGenerator) ServeHTTP(w http.ResponseWriter, r *http.Request)
type TokenResponse ¶
type UnknownClientError ¶
type UnknownClientError struct{}
UnknownClientError signifies that the client is unknown.
func (*UnknownClientError) Error ¶
func (err *UnknownClientError) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.