repository

package
v0.0.0-...-6ebe9bd Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 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 *domain.Item) error
	FindAll() ([]*domain.Item, error)
}

type Store

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

type UnitOfWork

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

type User

type User interface {
	Create(user *domain.User) error
	FindAll() ([]*domain.User, error)
	FindByID(id domain.UUID) (*domain.User, error)
	FindByEmail(email string) (*domain.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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