repo

package
v0.0.0-...-37f52e5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareFilter

func PrepareFilter(filters []entity.Filter) squirrel.And

func PrepareGetListQuery

func PrepareGetListQuery(selectQuery squirrel.SelectBuilder, filterRequest entity.GetListFilter) (query squirrel.SelectBuilder, where squirrel.And)

Types

type SessionRepo

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

func NewSessionRepo

func NewSessionRepo(pg *postgres.Postgres, config *config.Config, logger *logger.Logger) *SessionRepo

New -.

func (*SessionRepo) Create

func (r *SessionRepo) Create(ctx context.Context, req entity.Session) (entity.Session, error)

func (*SessionRepo) Delete

func (r *SessionRepo) Delete(ctx context.Context, req entity.Id) error

func (*SessionRepo) GetList

func (*SessionRepo) GetSingle

func (r *SessionRepo) GetSingle(ctx context.Context, req entity.Id) (entity.Session, error)

func (*SessionRepo) Update

func (r *SessionRepo) Update(ctx context.Context, req entity.Session) (entity.Session, error)

func (*SessionRepo) UpdateField

type UserRepo

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

func NewUserRepo

func NewUserRepo(pg *postgres.Postgres, config *config.Config, logger *logger.Logger) *UserRepo

New

func (*UserRepo) Create

func (r *UserRepo) Create(ctx context.Context, req entity.User) (entity.User, error)

func (*UserRepo) Delete

func (r *UserRepo) Delete(ctx context.Context, req entity.Id) error

func (*UserRepo) GetList

func (r *UserRepo) GetList(ctx context.Context, req entity.GetListFilter) (entity.UserList, error)

func (*UserRepo) GetSingle

func (r *UserRepo) GetSingle(ctx context.Context, req entity.UserSingleRequest) (entity.User, error)

func (*UserRepo) Update

func (r *UserRepo) Update(ctx context.Context, req entity.User) (entity.User, error)

Jump to

Keyboard shortcuts

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