mark

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

func (*Manager) ClientID

func (manager *Manager) ClientID(clientID string) (result *entity.Mark, err error)

func (*Manager) FindAll

func (manager *Manager) FindAll() ([]*entity.Mark, error)

func (*Manager) FindByID

func (manager *Manager) FindByID(markID types.UUID) (result *entity.Mark, err error)

func (*Manager) Update

func (manager *Manager) Update(mark *entity.Mark) (err error)

type RepositoryInterface

type RepositoryInterface interface {

	//
	FindByID(types.UUID) (result *entity.Mark, err error)

	//
	FindByClientID(string) (result *entity.Mark, err error)

	//
	FindBySessionID(types.UUID) (result *entity.Mark, err error)

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

	//
	Insert(*entity.Mark) (err error)

	//
	Update(*entity.Mark) (err error)
}

Directories

Path Synopsis
dao

Jump to

Keyboard shortcuts

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