preprocessor

package
v0.22.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 12 Imported by: 7 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessKeyValidationPreprocessor

type AccessKeyValidationPreprocessor struct {
	ClientKey string
	MasterKey string
	AppName   string
}

AccessKeyValidationPreprocessor provides preprocess method to check the API key of the request.

func (AccessKeyValidationPreprocessor) Preprocess

func (p AccessKeyValidationPreprocessor) Preprocess(payload *router.Payload, response *router.Response) int

type ConnPreprocessor

type ConnPreprocessor struct {
	AppName       string
	AccessControl string
	DBOpener      func(string, string, string, string, bool) (skydb.Conn, error)
	DBImpl        string
	Option        string
	DevMode       bool
}

func (ConnPreprocessor) Preprocess

func (p ConnPreprocessor) Preprocess(payload *router.Payload, response *router.Response) int

type DevOnlyProcessor

type DevOnlyProcessor struct {
	DevMode bool
}

func (DevOnlyProcessor) Preprocess

func (p DevOnlyProcessor) Preprocess(payload *router.Payload, response *router.Response) int

type EnsurePluginReadyPreprocessor

type EnsurePluginReadyPreprocessor struct {
	PluginContext *plugin.Context
	ClientKey     string
	MasterKey     string
}

func (*EnsurePluginReadyPreprocessor) Preprocess

func (p *EnsurePluginReadyPreprocessor) Preprocess(
	payload *router.Payload,
	response *router.Response,
) int

type InjectDatabase

type InjectDatabase struct {
}

func (InjectDatabase) Preprocess

func (p InjectDatabase) Preprocess(payload *router.Payload, response *router.Response) int

type InjectPublicDatabase

type InjectPublicDatabase struct {
}

func (InjectPublicDatabase) Preprocess

func (p InjectPublicDatabase) Preprocess(payload *router.Payload, response *router.Response) int

type InjectUserIfPresent

type InjectUserIfPresent struct {
}

func (InjectUserIfPresent) Preprocess

func (p InjectUserIfPresent) Preprocess(payload *router.Payload, response *router.Response) int

type NotificationPreprocessor

type NotificationPreprocessor struct {
	NotificationSender push.Sender
}

func (NotificationPreprocessor) Preprocess

func (p NotificationPreprocessor) Preprocess(payload *router.Payload, response *router.Response) int

type RequireUser added in v0.22.2

type RequireUser struct {
}

func (RequireUser) Preprocess added in v0.22.2

func (p RequireUser) Preprocess(payload *router.Payload, response *router.Response) int

type UserAuthenticator

type UserAuthenticator struct {
	ClientKey  string
	MasterKey  string
	AppName    string
	TokenStore authtoken.Store
}

UserAuthenticator provides preprocess method to authenicate a user with access token or non-login user without api key.

func (*UserAuthenticator) Preprocess

func (p *UserAuthenticator) Preprocess(payload *router.Payload, response *router.Response) int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL