Documentation
¶
Index ¶
- func PrepareFilter(filters []entity.Filter) squirrel.And
- func PrepareGetListQuery(selectQuery squirrel.SelectBuilder, filterRequest entity.GetListFilter) (query squirrel.SelectBuilder, where squirrel.And)
- type SessionRepo
- func (r *SessionRepo) Create(ctx context.Context, req entity.Session) (entity.Session, error)
- func (r *SessionRepo) Delete(ctx context.Context, req entity.Id) error
- func (r *SessionRepo) GetList(ctx context.Context, req entity.GetListFilter) (entity.SessionList, error)
- func (r *SessionRepo) GetSingle(ctx context.Context, req entity.Id) (entity.Session, error)
- func (r *SessionRepo) Update(ctx context.Context, req entity.Session) (entity.Session, error)
- func (r *SessionRepo) UpdateField(ctx context.Context, req entity.UpdateFieldRequest) (entity.RowsEffected, error)
- type UserRepo
- func (r *UserRepo) Create(ctx context.Context, req entity.User) (entity.User, error)
- func (r *UserRepo) Delete(ctx context.Context, req entity.Id) error
- func (r *UserRepo) GetList(ctx context.Context, req entity.GetListFilter) (entity.UserList, error)
- func (r *UserRepo) GetSingle(ctx context.Context, req entity.UserSingleRequest) (entity.User, error)
- func (r *UserRepo) Update(ctx context.Context, req entity.User) (entity.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) GetList ¶
func (r *SessionRepo) GetList(ctx context.Context, req entity.GetListFilter) (entity.SessionList, error)
func (*SessionRepo) UpdateField ¶
func (r *SessionRepo) UpdateField(ctx context.Context, req entity.UpdateFieldRequest) (entity.RowsEffected, error)
Click to show internal directories.
Click to hide internal directories.