region

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegionRepository

func NewRegionRepository(s *store.Store, mappers RegionMappers) storage.RegionRepository

func WithName

func WithName(name string) entities.EntityFunc[entities.Region]

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 (*RegionRepository) Delete

func (r *RegionRepository) Delete(ctx context.Context, id int32) error

func (*RegionRepository) GetAll

func (r *RegionRepository) GetAll(ctx context.Context) ([]*entities.Region, error)

func (*RegionRepository) GetByID

func (r *RegionRepository) GetByID(ctx context.Context, id int32) (*entities.Region, error)

func (*RegionRepository) GetByName

func (r *RegionRepository) GetByName(ctx context.Context, plate string) (*entities.Region, error)

func (*RegionRepository) GetByPoint

func (r *RegionRepository) GetByPoint(ctx context.Context, latitude, longitude float64) (*entities.Region, error)

func (*RegionRepository) Update

Jump to

Keyboard shortcuts

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