repository

package
v0.0.0-...-dc97487 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item interface {
	Create(item *model.Item) error
	Delete(item *model.Item) error
}

type Store

type Store interface {
	Users() User
	Items() Item
	UnitOfWork
}

type UnitOfWork

type UnitOfWork interface {
	BeginTransaction() (Store, error)
	Commit() error
	Rollback() error
}

type User

type User interface {
	Create(user *model.User) error
	FindByEmail(email string) (*model.User, error)
	FindByID(id string) (*model.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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