repository

package
v0.0.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: GPL-3.0 Imports: 7 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
}

UserRepository is a struct that defines the methods that a user repository should implement

func NewUserRepository

func NewUserRepository(dbContext database.IPersistenceDatabase) *UserRepository

func (*UserRepository) Create

func (u *UserRepository) Create(ctx context.Context, user generated.IEntity) error

func (*UserRepository) Delete

func (u *UserRepository) Delete(ctx context.Context, id string) error

func (*UserRepository) GetById

func (u *UserRepository) GetById(ctx context.Context, id string) (generated.IEntity, error)

func (*UserRepository) GetByName

func (u *UserRepository) GetByName(ctx context.Context, name string) (generated.IEntity, error)

func (*UserRepository) GetClient

func (u *UserRepository) GetClient() *sqlx.DB

func (*UserRepository) List

func (*UserRepository) Update

func (u *UserRepository) Update(ctx context.Context, entity generated.IEntity) error

Jump to

Keyboard shortcuts

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