Documentation ¶
Index ¶
Constants ¶
View Source
const ( PaginationEvent = Event("pagination") BeforeCreateEvent = Event("before_create") BeforeUpdateEvent = Event("before_update") BeforeDeleteEvent = Event("before_delete") 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 { Query *elastic.BoolQuery Filters []paginations.Filter }
type GormPagination ¶
type GormPagination struct { Query *gorm.DB Filters []paginations.Filter }
type Model ¶
type Model struct { Data interface{} Id string Repository repositories.Repository }
type MongodbPagination ¶
type MongodbPagination struct { Query *mgm.Collection Filters []paginations.Filter MongoDbFilter bson.M }
Click to show internal directories.
Click to hide internal directories.