Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cache ¶
func Cache(duration time.Duration, handler rest.HandlerFunc) rest.HandlerFunc
Types ¶
type AuthProvider ¶
type AuthProvider interface {
Get(r *http.Request) (*AuthenticatedUser, error)
}
type AuthenticatedUser ¶
type AuthenticatedUser struct { User auth.ReadUser Token auth.AccessToken }
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(app *application.Application, authProvider AuthProvider) (*Handler, error)
type HttpAuthProvider ¶
type HttpAuthProvider struct {
// contains filtered or unexported fields
}
func NewHttpAuthProvider ¶
func NewHttpAuthProvider(app *application.Application) *HttpAuthProvider
func (*HttpAuthProvider) Get ¶
func (h *HttpAuthProvider) Get(r *http.Request) (*AuthenticatedUser, error)
Click to show internal directories.
Click to hide internal directories.