Versions in this module Expand all Collapse all v0 v0.0.2 Jun 14, 2021 Changes in this version type Backend + func (b *Backend) OauthAuthRep(request threescale.Request) (*threescale.AuthorizeResult, error) + func (b *Backend) OauthAuthorize(request threescale.Request) (*threescale.AuthorizeResult, error) v0.0.1 Jul 16, 2020 Changes in this version + const RejectionReasonHeaderExtension + func FailClosedPolicy() bool + func FailOpenPolicy() bool + type Application struct + LocalState LimitCounter + RemoteState LimitCounter + UnlimitedCounter UnlimitedCounter + type Backend struct + func NewBackend(url string, client *http.Client, logger core.Logger, policy FailurePolicy) (*Backend, error) + func (b *Backend) AuthRep(request threescale.Request) (*threescale.AuthorizeResult, error) + func (b *Backend) Authorize(request threescale.Request) (*threescale.AuthorizeResult, error) + func (b *Backend) Flush() + func (b *Backend) GetPeer() string + func (b *Backend) Report(request threescale.Request) (*threescale.ReportResult, error) + func (b *Backend) SetCacheHitCallback(f func()) + type Cacheable interface + Get func(key string) (*Application, bool) + Keys func() []string + Set func(key string, application *Application) + type FailurePolicy func() bool + type LimitCounter api.UsageReports + type LocalCache struct + func NewLocalCache() *LocalCache + func (l LocalCache) Get(cacheKey string) (*Application, bool) + func (l LocalCache) Keys() []string + func (l LocalCache) Set(cacheKey string, app *Application) + type UnlimitedCounter map[string]int