repo

package
v0.0.0-...-5d22fbd Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 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 RepoFactory

type RepoFactory interface {
	NewUser(getter database.DataContextGetter) User
}

type User

type User interface {
	FindOneBy(ctx context.Context, spec specification.Set) (entity.User, error)
	FindBy(ctx context.Context, spec specification.Set) ([]entity.User, error)
	Create(ctx context.Context, user entity.User) (string, error)
	Update(ctx context.Context, id string, user entity.User) error
	Delete(ctx context.Context, id string) error
}

User is the interface that wraps the basic CRUD operations for User.

type UserRepoFactory

type UserRepoFactory interface {
	NewTender(data.DataContextGetter) User
}

Jump to

Keyboard shortcuts

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