repository

package
v0.0.0-...-2a01338 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Get(ctx context.Context, id uuid.UUID) (entity.User, error)
	Count(ctx context.Context) (int64, error)
	Query(ctx context.Context, page, size int) ([]entity.User, error)
	Create(ctx context.Context, u entity.User) error
	Update(ctx context.Context, u entity.User) error
	Delete(ctx context.Context, id uuid.UUID) error
}

Repository encapsulates the logic to access users from the data source.

func New

func New(db *sqlx.DB, logger log.Logger) Repository

Jump to

Keyboard shortcuts

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