Versions in this module Expand all Collapse all v0 v0.6.0 Nov 28, 2015 Changes in this version + type Auth struct + func NewAuth(key string) *Auth + func (a *Auth) ServeHTTP(w http.ResponseWriter, r *http.Request) + type AuthCallback struct + func NewAuthCallback(consumers *Consumers, key string) *AuthCallback + func (ac *AuthCallback) ServeHTTP(w http.ResponseWriter, r *http.Request) + type AuthCredentials struct + CS string + ID string + type AuthMonitor struct + func NewAuthMonitor(consumers *Consumers, key string) *AuthMonitor + func (am *AuthMonitor) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Consumer struct + AccessToken string + Err string + ID string + Message string + type Consumers struct + func NewConsumers() *Consumers + func (cc *Consumers) Get(id string) chan Consumer + func (cc *Consumers) Len() int + func (cc *Consumers) Remove(id string) + type Server struct + Consumers *Consumers + Mux http.Handler + func NewServer(key string) *Server + type TokenGenerator struct + func NewTokenGenerator(key string) *TokenGenerator + func (tg *TokenGenerator) ServeHTTP(w http.ResponseWriter, r *http.Request) + type TokenResponse struct + AccessToken string + Err string + ID string + Message string + type UnknownClientError struct + func (err *UnknownClientError) Error() string