repository

package
v0.0.0-...-59b6e81 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(db *sql.DB) UserRepository

func (UserRepository) Delete

func (ur UserRepository) Delete(ctx context.Context, m models.User) error

func (UserRepository) ExistsByUsername

func (ur UserRepository) ExistsByUsername(ctx context.Context, username string) bool

func (UserRepository) FindByUsername

func (ur UserRepository) FindByUsername(ctx context.Context, username string) (models.User, error)

func (UserRepository) Get

func (ur UserRepository) Get(ctx context.Context, id string) (*models.User, error)

func (UserRepository) GetAll

func (ur UserRepository) GetAll(ctx context.Context) (models.UserSlice, error)

func (UserRepository) Insert

func (ur UserRepository) Insert(ctx context.Context, u models.User) error

func (UserRepository) Update

func (ur UserRepository) Update(ctx context.Context, u models.User) (models.User, error)

Jump to

Keyboard shortcuts

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