preprocessor

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessKeyValidatonPreprocessor

type AccessKeyValidatonPreprocessor struct {
	Key     string
	AppName string
}

func (AccessKeyValidatonPreprocessor) Preprocess

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

type ConnPreprocessor

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

func (ConnPreprocessor) Preprocess

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

type DevOnlyProcessor added in v0.5.0

type DevOnlyProcessor struct {
	DevMode bool
}

func (DevOnlyProcessor) Preprocess added in v0.5.0

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

type EnsurePluginReadyPreprocessor added in v0.4.0

type EnsurePluginReadyPreprocessor struct {
	PluginInitContext *plugin.InitContext
}

func (*EnsurePluginReadyPreprocessor) Preprocess added in v0.4.0

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

type InjectDatabase

type InjectDatabase struct {
}

func (InjectDatabase) Preprocess added in v0.4.1

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

type InjectPublicDatabase added in v0.5.0

type InjectPublicDatabase struct {
}

func (InjectPublicDatabase) Preprocess added in v0.5.0

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

type InjectUserIfPresent

type InjectUserIfPresent struct {
}

func (InjectUserIfPresent) Preprocess added in v0.4.1

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 RequireUserForWrite

type RequireUserForWrite struct {
}

func (RequireUserForWrite) Preprocess added in v0.4.1

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

type UserAuthenticator

type UserAuthenticator struct {
	// These two fields are for non-login user
	APIKey     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 (author *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