repository

package
v0.0.0-...-53f0542 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityRepoImpl

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

func NewEntityRepoImpl

func NewEntityRepoImpl(db *sql.DB, logger *zerolog.Logger) *EntityRepoImpl

func (*EntityRepoImpl) CountByFilter

func (s *EntityRepoImpl) CountByFilter(ctx context.Context, f *domain.EntityFilter) (uint64, error)

func (*EntityRepoImpl) DeleteByID

func (r *EntityRepoImpl) DeleteByID(ctx context.Context, id uint64) error

func (*EntityRepoImpl) GetByID

func (dr *EntityRepoImpl) GetByID(ctx context.Context, id uint64) (*domain.Entity, error)

func (*EntityRepoImpl) GetByUUID

func (dr *EntityRepoImpl) GetByUUID(ctx context.Context, uid string) (*domain.Entity, error)

func (*EntityRepoImpl) Insert

func (r *EntityRepoImpl) Insert(ctx context.Context, m *domain.Entity) error

func (*EntityRepoImpl) ListByFilter

func (s *EntityRepoImpl) ListByFilter(ctx context.Context, f *domain.EntityFilter) ([]*domain.Entity, error)

Jump to

Keyboard shortcuts

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