flash

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) (result []*entity.Flash, err error)

func (*Manager) FindAllByEventID

func (manager *Manager) FindAllByEventID(eventID types.UUID, limit int64, offset int64) ([]*entity.Flash, error)

func (*Manager) FindAllByVisitID

func (manager *Manager) FindAllByVisitID(visitID types.UUID) (result []*entity.Flash, err error)

func (*Manager) FindByID

func (manager *Manager) FindByID(flashID types.UUID) (result *entity.Flash, err error)

func (*Manager) Insert

func (manager *Manager) Insert(flash *entity.Flash) (err error)

type RepositoryInterface

type RepositoryInterface interface {
	//
	FindByID(types.UUID) (result *entity.Flash, err error)

	//
	FindAll(limit int64, offset int64) (result []*entity.Flash, err error)

	//
	FindAllByVisitID(visitID types.UUID) (result []*entity.Flash, err error)

	//
	FindAllByEventID(eventID types.UUID, limit int64, offset int64) (result []*entity.Flash, err error)

	//
	Insert(*entity.Flash) (err error)
}

Directories

Path Synopsis
dao

Jump to

Keyboard shortcuts

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