Documentation ¶
Index ¶
- func NewRegionRepository(s *store.Store, mappers RegionMappers) storage.RegionRepository
- func WithName(name string) entities.EntityFunc[entities.Region]
- type RegionMappers
- type RegionRepository
- func (r *RegionRepository) Create(ctx context.Context, vFn ...entities.EntityFunc[entities.Region]) (*entities.Region, error)
- func (r *RegionRepository) Delete(ctx context.Context, id int32) error
- func (r *RegionRepository) GetAll(ctx context.Context) ([]*entities.Region, error)
- func (r *RegionRepository) GetByID(ctx context.Context, id int32) (*entities.Region, error)
- func (r *RegionRepository) GetByName(ctx context.Context, plate string) (*entities.Region, error)
- func (r *RegionRepository) GetByPoint(ctx context.Context, latitude, longitude float64) (*entities.Region, error)
- func (r *RegionRepository) Update(ctx context.Context, id int32, vFn ...entities.EntityFunc[entities.Region]) (*entities.Region, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRegionRepository ¶
func NewRegionRepository(s *store.Store, mappers RegionMappers) storage.RegionRepository
Types ¶
type RegionMappers ¶
type RegionMappers struct {
// contains filtered or unexported fields
}
func NewRegionMappers ¶
func NewRegionMappers(rMapper mapper.InternalRegionRepoMapper) RegionMappers
type RegionRepository ¶
type RegionRepository struct { RegionMappers // contains filtered or unexported fields }
func (*RegionRepository) Create ¶
func (r *RegionRepository) Create(ctx context.Context, vFn ...entities.EntityFunc[entities.Region]) (*entities.Region, error)
func (*RegionRepository) Delete ¶
func (r *RegionRepository) Delete(ctx context.Context, id int32) error
func (*RegionRepository) GetByPoint ¶
Click to show internal directories.
Click to hide internal directories.