event

package
v0.0.0-...-0bc60f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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) FindAll

func (manager *Manager) FindAll(limit int64, offset int64) ([]*entity.Event, error)

func (*Manager) FindAllByFields

func (manager *Manager) FindAllByFields(data types.Hash) (result []*entity.Event, err error)

func (*Manager) FindByID

func (manager *Manager) FindByID(eventID types.UUID) (result *entity.Event, err error)

func (*Manager) Insert

func (manager *Manager) Insert(
	enabled bool,
	fields types.Hash,
	filters types.Hash,
) (event *entity.Event, err error)

func (*Manager) Update

func (manager *Manager) Update(event *entity.Event) (err error)

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)
}

Directories

Path Synopsis
dao

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL