Documentation ¶
Index ¶
- type AuthHandler
- type BaseHandler
- func (this *BaseHandler) HttpClose(response http.ResponseWriter, message string, httpCode int)
- func (this *BaseHandler) HttpError(response http.ResponseWriter, message string, httpCode int)
- func (this *BaseHandler) LookupClient(client proto_v2.AuthClient) (clientId string)
- func (this *BaseHandler) ServeJSON(response http.ResponseWriter, data interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler struct { BaseHandler Providers providers.ProviderChain }
func (*AuthHandler) ServeAuthenticatedHTTP ¶
func (this *AuthHandler) ServeAuthenticatedHTTP(response http.ResponseWriter, request *http.Request, fn func(user tokenapi.UserDesc))
type BaseHandler ¶
type BaseHandler struct { Logger logr.Logger TokenBasket token.TokenBasket RequestId int }
func (*BaseHandler) HttpClose ¶
func (this *BaseHandler) HttpClose(response http.ResponseWriter, message string, httpCode int)
func (*BaseHandler) HttpError ¶
func (this *BaseHandler) HttpError(response http.ResponseWriter, message string, httpCode int)
func (*BaseHandler) LookupClient ¶
func (this *BaseHandler) LookupClient(client proto_v2.AuthClient) (clientId string)
func (*BaseHandler) ServeJSON ¶
func (this *BaseHandler) ServeJSON(response http.ResponseWriter, data interface{})
Each REST call must be concluded by one of these function
Click to show internal directories.
Click to hide internal directories.