Documentation ¶
Index ¶
- Variables
- func GetAfterDeleteHooks() map[string][]func(ctx context.Context, data *gjson.Json) error
- func GetAfterDeleteHooksByCollectionName(collectionName string) []func(ctx context.Context, data *gjson.Json) error
- func GetAfterFindHooks() map[string][]func(ctx context.Context, data *gjson.Json) error
- func GetAfterFindHooksByCollectionName(collectionName string) []func(ctx context.Context, data *gjson.Json) error
- func GetAfterInsertHooks() map[string][]func(ctx context.Context, data *gjson.Json) error
- func GetAfterInsertHooksByCollectionName(collectionName string) []func(ctx context.Context, data *gjson.Json) error
- func GetAfterSaveHooks() map[string][]func(ctx context.Context, data *gjson.Json) error
- func GetAfterSaveHooksByCollectionName(collectionName string) []func(ctx context.Context, data *gjson.Json) error
- func GetAfterUpdateHooks() map[string][]func(ctx context.Context, data *gjson.Json) error
- func GetAfterUpdateHooksByCollectionName(collectionName string) []func(ctx context.Context, data *gjson.Json) error
- func GetBeforeDeleteHooks() map[string][]func(ctx context.Context, data *gjson.Json) error
- func GetBeforeDeleteHooksByCollectionName(collectionName string) []func(ctx context.Context, data *gjson.Json) error
- func GetBeforeInsertHooks() map[string][]func(ctx context.Context, data *gjson.Json) error
- func GetBeforeInsertHooksByCollectionName(collectionName string) []func(ctx context.Context, data *gjson.Json) error
- func GetBeforeSaveHooks() map[string][]func(ctx context.Context, data *gjson.Json) error
- func GetBeforeSaveHooksByCollectionName(collectionName string) []func(ctx context.Context, data *gjson.Json) error
- func GetBeforeUpdateHooks() map[string][]func(ctx context.Context, data *gjson.Json) error
- func GetBeforeUpdateHooksByCollectionName(collectionName string) []func(ctx context.Context, data *gjson.Json) error
- func GetPermission(collectionName string) *dto.Permission
- func GetSchema(collectionName string) *dto.Schema
- func LoadPermissions()
- func LoadSchemas()
- func RegisterAfterDeleteHooks(collectionName string, ...)
- func RegisterAfterFindHooks(collectionName string, ...)
- func RegisterAfterInsertHooks(collectionName string, ...)
- func RegisterAfterSaveHooks(collectionName string, ...)
- func RegisterAfterUpdateHooks(collectionName string, ...)
- func RegisterBeforeDeleteHooks(collectionName string, ...)
- func RegisterBeforeInsertHooks(collectionName string, ...)
- func RegisterBeforeSaveHooks(collectionName string, ...)
- func RegisterBeforeUpdateHooks(collectionName string, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SchemaChan = make(chan struct{}, 1) PermissionChan = make(chan struct{}, 1) )
Functions ¶
func GetAfterDeleteHooks ¶
func GetAfterFindHooks ¶
func GetAfterInsertHooks ¶
func GetAfterSaveHooks ¶
func GetAfterUpdateHooks ¶
func GetBeforeDeleteHooks ¶
func GetBeforeInsertHooks ¶
func GetBeforeSaveHooks ¶
func GetBeforeUpdateHooks ¶
func GetPermission ¶
func GetPermission(collectionName string) *dto.Permission
GetPermission 从内存中获取某个Collection的权限
func RegisterAfterFindHooks ¶
func RegisterAfterSaveHooks ¶
func RegisterBeforeSaveHooks ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.