repository

package
v0.0.0-...-cb82d97 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductRepository

type ProductRepository interface {
	Get(id string) (*domain.Product, error)
	List() ([]domain.Product, error)
	Create(user *domain.Product) error
	Delete(id string) error
}

func NewProductRepository

func NewProductRepository(logger logging.Logger) ProductRepository

type UserRepository

type UserRepository interface {
	Get(id string) (*domain.User, error)
	List() ([]domain.User, error)
	Create(user *domain.User) error
	Delete(id string) error
}

func NewUserRepository

func NewUserRepository(logger logging.Logger) UserRepository

Directories

Path Synopsis
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.

Jump to

Keyboard shortcuts

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