Documentation ¶
Index ¶
- type Manager
- func (manager *Manager) FindAll(limit int64, offset int64) ([]*entity.Event, error)
- func (manager *Manager) FindAllByFields(data types.Hash) (result []*entity.Event, err error)
- func (manager *Manager) FindByID(eventID types.UUID) (result *entity.Event, err error)
- func (manager *Manager) Insert(enabled bool, fields types.Hash, filters types.Hash) (event *entity.Event, err error)
- func (manager *Manager) Update(event *entity.Event) (err error)
- type RepositoryInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager( repository RepositoryInterface, uuid share.UUIDProviderInterface, logger share.LoggerInterface, ) *Manager
Create new manager instance
func (*Manager) FindAllByFields ¶
type RepositoryInterface ¶
type RepositoryInterface interface { // FindAll(limit int64, offset int64) (result []*entity.Event, err error) // FindAllByFields(fields types.Hash) (result []*entity.Event, err error) // FindByID(types.UUID) (result *entity.Event, err error) // Insert(*entity.Event) (err error) // Update(*entity.Event) (err error) }
Click to show internal directories.
Click to hide internal directories.