Documentation
¶
Index ¶
- type AccessKeyValidationPreprocessor
- type ConnPreprocessor
- type DevOnlyProcessor
- type EnsurePluginReadyPreprocessor
- type InjectAuthIfPresent
- type InjectDatabase
- type InjectPublicDatabase
- type InjectUserIfPresent
- type NotificationPreprocessor
- type RequireAdminOrMasterKey
- type RequireAuth
- type UserAuthenticator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessKeyValidationPreprocessor ¶
AccessKeyValidationPreprocessor provides preprocess method to check the API key of the request.
func (AccessKeyValidationPreprocessor) Preprocess ¶
type ConnPreprocessor ¶
type ConnPreprocessor struct {
AppName string
AccessControl string
DBOpener func(context.Context, string, string, string, string, bool) (skydb.Conn, error)
DBImpl string
Option string
DevMode bool
}
func (ConnPreprocessor) Preprocess ¶
type DevOnlyProcessor ¶
type DevOnlyProcessor struct {
DevMode bool
}
func (DevOnlyProcessor) Preprocess ¶
type EnsurePluginReadyPreprocessor ¶
type EnsurePluginReadyPreprocessor struct {
PluginContext *plugin.Context
ClientKey string
MasterKey string
}
func (*EnsurePluginReadyPreprocessor) Preprocess ¶
type InjectAuthIfPresent ¶ added in v1.1.0
type InjectAuthIfPresent struct {
}
func (InjectAuthIfPresent) Preprocess ¶ added in v1.1.0
type InjectPublicDatabase ¶
type InjectPublicDatabase struct {
}
func (InjectPublicDatabase) Preprocess ¶
type InjectUserIfPresent ¶
type InjectUserIfPresent struct {
HookRegistry *hook.Registry `inject:"HookRegistry"`
AssetStore asset.Store `inject:"AssetStore"`
}
InjectUserIfPresent injects a user record to the payload
An AuthInfo must be injected before this, if it is not found, the preprocessor would just skip the injection
If AuthInfo is injected but a user record is not found, the preprocessor would create a new user record and inject it to the payload
func (InjectUserIfPresent) Preprocess ¶
type NotificationPreprocessor ¶
func (NotificationPreprocessor) Preprocess ¶
type RequireAdminOrMasterKey ¶ added in v1.1.0
type RequireAdminOrMasterKey struct {
}
func (RequireAdminOrMasterKey) Preprocess ¶ added in v1.1.0
type RequireAuth ¶ added in v1.1.0
type RequireAuth struct {
}
func (RequireAuth) Preprocess ¶ added in v1.1.0
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 ¶
Click to show internal directories.
Click to hide internal directories.