Documentation
¶
Index ¶
- Variables
- type Base
- type Option
- func WithAction(action response.Action) Option
- func WithAfterCreate(afterCreate func(ctx *gin.Context, db *gorm.DB, m schema.Tabler) error) Option
- func WithAfterDelete(afterDelete func(ctx *gin.Context, db *gorm.DB, m schema.Tabler) error) Option
- func WithAfterGet(afterGet func(ctx *gin.Context, db *gorm.DB, m schema.Tabler) error) Option
- func WithAfterSearch(afterSearch func(ctx *gin.Context, db *gorm.DB, m schema.Tabler) error) Option
- func WithAfterUpdate(afterUpdate func(ctx *gin.Context, db *gorm.DB, m schema.Tabler) error) Option
- func WithAuth(auth bool) Option
- func WithBeforeCreate(beforeCreate func(ctx *gin.Context, db *gorm.DB, m schema.Tabler) error) Option
- func WithBeforeDelete(beforeDelete func(ctx *gin.Context, db *gorm.DB, m schema.Tabler) error) Option
- func WithBeforeGet(beforeGet func(ctx *gin.Context, db *gorm.DB, m schema.Tabler) error) Option
- func WithBeforeSearch(beforeSearch func(ctx *gin.Context, db *gorm.DB, m schema.Tabler) error) Option
- func WithBeforeUpdate(beforeUpdate func(ctx *gin.Context, db *gorm.DB, m schema.Tabler) error) Option
- func WithCreateHandlers(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 WithModel(m actions.Model) Option
- func WithModelProvider(provider actions.ModelProvider) Option
- func WithNoAuthAction(names ...string) 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
- func WithUpdateHandlers(handlers gin.HandlersChain) Option
- type Options
- type Simple
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKey = "id"
DefaultKey default key
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
Option set options
func WithAfterCreate ¶ added in v0.1.6
func WithAfterDelete ¶ added in v0.1.6
func WithAfterGet ¶ added in v0.1.6
func WithAfterSearch ¶ added in v0.1.6
func WithAfterUpdate ¶ added in v0.1.6
func WithBeforeCreate ¶ added in v0.1.6
func WithBeforeDelete ¶ added in v0.1.6
func WithBeforeGet ¶ added in v0.1.6
func WithBeforeSearch ¶ added in v0.1.6
func WithBeforeUpdate ¶ added in v0.1.6
func WithCreateHandlers ¶ added in v0.1.6
func WithCreateHandlers(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 WithModelProvider ¶
func WithModelProvider(provider actions.ModelProvider) Option
WithModelProvider set model provider
func WithNoAuthAction ¶ added in v0.1.4
WithNoAuthAction set no auth action names
func WithSearchHandlers ¶ added in v0.1.6
func WithSearchHandlers(handlers gin.HandlersChain) Option
func WithTreeField ¶ added in v0.1.5
WithTreeField set tree field
func WithUpdateHandlers ¶ added in v0.1.6
func WithUpdateHandlers(handlers gin.HandlersChain) Option
Click to show internal directories.
Click to hide internal directories.