Versions in this module Expand all Collapse all v0 v0.0.2 Jul 10, 2018 Changes in this version + type EntityMapper struct + DelEntityCount int32 + DelEntityFunc func(entity.Subset) error + GetEntityCount int32 + GetEntityFunc func(entity.Subset) (entity.E, error) + SetEntityCount int32 + SetEntityFunc func(entity.E, int64) error + func NewEntityMapper() *EntityMapper + func (m *EntityMapper) DelEntity(subset entity.Subset) error + func (m *EntityMapper) GetEntity(subset entity.Subset) (entity.E, error) + func (m *EntityMapper) SetEntity(e entity.E, ts int64) error + type EventMapper struct + ListEventCount int32 + ListEventFunc func(event.Subset) ([]event.E, error) + SetEventCount int32 + SetEventFunc func(event.E, ulid.ID) error + func NewEventMapper() *EventMapper + func (s *EventMapper) ListEvent(subset event.Subset) ([]event.E, error) + func (s *EventMapper) SetEvent(e event.E, id ulid.ID) error + type SectorEntitiesMapper struct + AddEntityToSectorCount int32 + AddEntityToSectorFunc func(ulid.ID, ulid.ID) error + GetEntitiesCount int32 + GetEntitiesFunc func(sector.EntitiesSubset) (sector.Entities, error) + RemoveEntityToSectorCount int32 + RemoveEntityToSectorFunc func(ulid.ID, ulid.ID) error + func NewSectorEntitiesMapper() *SectorEntitiesMapper + func (m *SectorEntitiesMapper) AddEntityToSector(entityID ulid.ID, sectorID ulid.ID) error + func (m *SectorEntitiesMapper) GetEntities(subset sector.EntitiesSubset) (sector.Entities, error) + func (m *SectorEntitiesMapper) RemoveEntityToSector(entityID ulid.ID, sectorID ulid.ID) error + type SectorMapper struct + GetSectorCount int32 + GetSectorFunc func(sector.Subset) (sector.S, error) + SetSectorCount int32 + SetSectorFunc func(sector.S) error + func NewSectorMapper() *SectorMapper + func (m *SectorMapper) GetSector(subset sector.Subset) (sector.S, error) + func (m *SectorMapper) SetSector(s sector.S) error