beehive: github.com/muesli/beehive/api/context Index | Files

package context

import "github.com/muesli/beehive/api/context"

Index

Package Files

context.go

type APIContext Uses

type APIContext struct {
    Config smolder.APIConfig
}

APIContext is polly's central context

func (*APIContext) Authentication Uses

func (context *APIContext) Authentication(request *restful.Request) (interface{}, error)

Authentication parses the request for an access-/authtoken and returns the matching user

func (*APIContext) LogSummary Uses

func (context *APIContext) LogSummary()

LogSummary logs out the current context stats

func (*APIContext) NewAPIContext Uses

func (context *APIContext) NewAPIContext() smolder.APIContext

NewAPIContext returns a new polly context

Package context imports 3 packages (graph) and is imported by 14 packages. Updated 2017-02-26. Refresh now. Tools for package owners.