Documentation ¶
Index ¶
- Variables
- type ActionHook
- type Control
- type Delete
- type Get
- type Option
- func WithAfterCreate(hook ActionHook) Option
- func WithAfterDelete(hook ActionHook) Option
- func WithAfterGet(hook ActionHook) Option
- func WithAfterSearch(hook ActionHook) Option
- func WithAfterUpdate(hook ActionHook) Option
- func WithBeforeCreate(hook ActionHook) Option
- func WithBeforeDelete(hook ActionHook) Option
- func WithBeforeGet(hook ActionHook) Option
- func WithBeforeSearch(hook ActionHook) Option
- func WithBeforeUpdate(hook ActionHook) Option
- func WithControlHandlers(handlers gin.HandlersChain) Option
- func WithDeleteHandlers(handlers gin.HandlersChain) Option
- func WithDepth(depth int) Option
- func WithGetHandlers(handlers gin.HandlersChain) Option
- func WithHandlers(handlers gin.HandlersChain) Option
- func WithKey(key string) Option
- func WithModel(m schema.Tabler) Option
- func WithScope(scope func(ctx *gin.Context, table schema.Tabler) func(db *gorm.DB) *gorm.DB) Option
- func WithSearch(search response.Searcher) Option
- func WithSearchHandlers(handlers gin.HandlersChain) Option
- func WithTreeField(treeField string) Option
- type Options
- type Search
Constants ¶
This section is empty.
Variables ¶
View Source
var CleanCacheFromTag func(ctx context.Context, tag string) error
Functions ¶
This section is empty.
Types ¶
type ActionHook ¶ added in v0.1.6
type Control ¶
type Control struct {
// contains filtered or unexported fields
}
Control action
func (*Control) Handler ¶
func (e *Control) Handler() gin.HandlersChain
type Delete ¶
type Delete struct {
// contains filtered or unexported fields
}
Delete action
func (*Delete) Handler ¶
func (e *Delete) Handler() gin.HandlersChain
type Get ¶
type Get struct {
// contains filtered or unexported fields
}
Get action
func (*Get) Handler ¶
func (e *Get) Handler() gin.HandlersChain
type Option ¶ added in v0.1.6
type Option func(*Options)
func WithAfterCreate ¶ added in v0.1.6
func WithAfterCreate(hook ActionHook) Option
func WithAfterDelete ¶ added in v0.1.6
func WithAfterDelete(hook ActionHook) Option
func WithAfterGet ¶ added in v0.1.6
func WithAfterGet(hook ActionHook) Option
func WithAfterSearch ¶ added in v0.1.6
func WithAfterSearch(hook ActionHook) Option
func WithAfterUpdate ¶ added in v0.1.6
func WithAfterUpdate(hook ActionHook) Option
func WithBeforeCreate ¶ added in v0.1.6
func WithBeforeCreate(hook ActionHook) Option
func WithBeforeDelete ¶ added in v0.1.6
func WithBeforeDelete(hook ActionHook) Option
func WithBeforeGet ¶ added in v0.1.6
func WithBeforeGet(hook ActionHook) Option
func WithBeforeSearch ¶ added in v0.1.6
func WithBeforeSearch(hook ActionHook) Option
func WithBeforeUpdate ¶ added in v0.1.6
func WithBeforeUpdate(hook ActionHook) Option
func WithControlHandlers ¶ added in v0.1.6
func WithControlHandlers(handlers gin.HandlersChain) Option
func WithDeleteHandlers ¶ added in v0.1.6
func WithDeleteHandlers(handlers gin.HandlersChain) Option
func WithGetHandlers ¶ added in v0.1.6
func WithGetHandlers(handlers gin.HandlersChain) Option
func WithHandlers ¶ added in v0.1.6
func WithHandlers(handlers gin.HandlersChain) Option
func WithSearch ¶ added in v0.1.6
func WithSearchHandlers ¶ added in v0.1.6
func WithSearchHandlers(handlers gin.HandlersChain) Option
func WithTreeField ¶ added in v0.1.6
type Options ¶ added in v0.1.6
type Options struct { Model schema.Tabler Scope func(ctx *gin.Context, table schema.Tabler) func(db *gorm.DB) *gorm.DB TreeField string Depth int Key string Search response.Searcher BeforeCreate ActionHook AfterCreate ActionHook BeforeUpdate ActionHook AfterUpdate ActionHook BeforeGet ActionHook AfterGet ActionHook BeforeDelete ActionHook AfterDelete ActionHook BeforeSearch ActionHook AfterSearch ActionHook // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.