Documentation
¶
Index ¶
Constants ¶
View Source
const ( PaginationEvent = Event("pagination") BeforeValidation = Event("before_validation") BeforeCreateEvent = Event("before_create") BeforeUpdateEvent = Event("before_update") BeforeDeleteEvent = Event("before_delete") AfterValidation = Event("after_validation") AfterCreateEvent = Event("after_create") AfterUpdateEvent = Event("after_update") AfterDeleteEvent = Event("after_delete") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
func (*Dispatcher) Dispatch ¶
func (d *Dispatcher) Dispatch(event string, payload interface{}) error
func (*Dispatcher) Register ¶
func (d *Dispatcher) Register(listeners []Listener)
type ElasticsearchPagination ¶
type ElasticsearchPagination struct {
Model interface{}
Query *elastic.BoolQuery
Filters paginations.Filter
}
type GormPagination ¶
type GormPagination struct {
Model interface{}
Query *gorm.DB
Filters paginations.Filter
}
type Model ¶
type Model struct {
Data interface{}
Id string
Repository repositories.Repository
}
type MongodbPagination ¶
type MongodbPagination struct {
Model interface{}
Query *mgm.Collection
Filters paginations.Filter
MongoDbFilter bson.M
}
type Validation ¶ added in v4.3.0
Click to show internal directories.
Click to hide internal directories.