Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityMapper ¶
type EntityMapper struct { SetEntityFunc func(entity.E, int64) error SetEntityCount int32 GetEntityFunc func(entity.Subset) (entity.E, error) GetEntityCount int32 DelEntityFunc func(entity.Subset) error DelEntityCount int32 }
EntityMapper mocks entity.Mapper.
func NewEntityMapper ¶
func NewEntityMapper() *EntityMapper
NewEntityMapper returns a entity service mock ready for usage.
func (*EntityMapper) DelEntity ¶
func (m *EntityMapper) DelEntity(subset entity.Subset) error
DelEntity mocks entity.Mapper.
type EventMapper ¶
type EventMapper struct { SetEventFunc func(event.E, ulid.ID) error SetEventCount int32 ListEventFunc func(event.Subset) ([]event.E, error) ListEventCount int32 }
EventMapper mocks event.Mapper.
func NewEventMapper ¶
func NewEventMapper() *EventMapper
NewEventMapper returns a event service mock ready for usage.
type SectorEntitiesMapper ¶
type SectorEntitiesMapper struct { GetEntitiesFunc func(sector.EntitiesSubset) (sector.Entities, error) GetEntitiesCount int32 AddEntityToSectorFunc func(ulid.ID, ulid.ID) error AddEntityToSectorCount int32 RemoveEntityToSectorFunc func(ulid.ID, ulid.ID) error RemoveEntityToSectorCount int32 }
SectorEntitiesMapper mocks sector.EntitiesMapper.
func NewSectorEntitiesMapper ¶
func NewSectorEntitiesMapper() *SectorEntitiesMapper
NewSectorEntitiesMapper returns a event service mock ready for usage.
func (*SectorEntitiesMapper) AddEntityToSector ¶
AddEntityToSector mocks sector.EntitiesMapper.
func (*SectorEntitiesMapper) GetEntities ¶
func (m *SectorEntitiesMapper) GetEntities(subset sector.EntitiesSubset) (sector.Entities, error)
GetEntities mocks sector.EntitiesMapper.
func (*SectorEntitiesMapper) RemoveEntityToSector ¶
RemoveEntityToSector mocks sector.EntitiesMapper.
type SectorMapper ¶
type SectorMapper struct { SetSectorFunc func(sector.S) error SetSectorCount int32 GetSectorFunc func(sector.Subset) (sector.S, error) GetSectorCount int32 }
SectorMapper mocks sector.Mapper.
func NewSectorMapper ¶
func NewSectorMapper() *SectorMapper
NewSectorMapper returns a s service mock ready for usage.
Click to show internal directories.
Click to hide internal directories.