Documentation ¶
Index ¶
- type Service
- func (s *Service) AddEntityToSector(entityID ulid.ID, sectorID ulid.ID) error
- func (s *Service) DelCore(subset infra.CoreSubset) error
- func (s *Service) DelEntity(subset entity.Subset) error
- func (s *Service) DelListener(subset event.ListenerSubset) error
- func (s *Service) DelPermission(subset entity.PermissionSubset) error
- func (s *Service) DelRecurrer(subset event.RecurrerSubset) error
- func (s *Service) DelStarter(subset sector.StarterSubset) error
- func (s *Service) DelSync(subset infra.SyncSubset) error
- func (s *Service) DelToken(subset account.TokenSubset) error
- func (s *Service) GetAbility(subset ability.Subset) (ability.A, error)
- func (s *Service) GetAbilityFeedback(subset ability.FeedbackSubset) (ability.Feedback, error)
- func (s *Service) GetAbilityTemplate(subset ability.TemplateSubset) (ability.Template, error)
- func (s *Service) GetAccount(subset account.Subset) (account.A, error)
- func (s *Service) GetEntities(subset sector.EntitiesSubset) (sector.Entities, error)
- func (s *Service) GetEntity(subset entity.Subset) (entity.E, error)
- func (s *Service) GetEntityTemplate(subset entity.TemplateSubset) (entity.Template, error)
- func (s *Service) GetListener(subset event.ListenerSubset) (event.Listener, error)
- func (s *Service) GetPC(subset entity.PCSubset) (entity.PC, error)
- func (s *Service) GetPCLeft(subset entity.PCLeftSubset) (entity.PCLeft, error)
- func (s *Service) GetPermission(subset entity.PermissionSubset) (entity.Permission, error)
- func (s *Service) GetRandomCore(subset infra.CoreSubset) (infra.Core, error)
- func (s *Service) GetRandomStarter(subset sector.StarterSubset) (sector.Starter, error)
- func (s *Service) GetRandomSync(subset infra.SyncSubset) (infra.Sync, error)
- func (s *Service) GetRecurrer(subset event.RecurrerSubset) (event.Recurrer, error)
- func (s *Service) GetSector(subset sector.Subset) (sector.S, error)
- func (s *Service) GetToken(subset account.TokenSubset) (account.Token, error)
- func (s *Service) ListAbility(subset ability.Subset) ([]ability.A, error)
- func (s *Service) ListAbilityTemplate() ([]ability.Template, error)
- func (s *Service) ListEntityTemplate() ([]entity.Template, error)
- func (s *Service) ListEvent(subset event.Subset) ([]event.E, error)
- func (s *Service) ListPC(subset entity.PCSubset) ([]entity.PC, error)
- func (s *Service) ListPermission(subset entity.PermissionSubset) ([]entity.Permission, error)
- func (s *Service) ListTokenHC(subset account.TokenHCSubset) ([]ulid.ID, error)
- func (s *Service) PublishEvent(e event.E, id ulid.ID) error
- func (s *Service) PublishListener(l event.Listener, id ulid.ID) error
- func (s *Service) PublishRecurrer(r event.Recurrer, id ulid.ID) error
- func (s *Service) RemoveEntityToSector(entityID ulid.ID, sectorID ulid.ID) error
- func (s *Service) SetAbility(a ability.A, entity ulid.ID) error
- func (s *Service) SetAbilityFeedback(afb ability.Feedback) error
- func (s *Service) SetAbilityTemplate(template ability.Template) error
- func (s *Service) SetAccount(a account.A) error
- func (s *Service) SetCore(core infra.Core) error
- func (s *Service) SetEntity(e entity.E, ts int64) error
- func (s *Service) SetEntityTemplate(template entity.Template) error
- func (s *Service) SetEvent(e event.E, id ulid.ID) error
- func (s *Service) SetListener(listener event.Listener) error
- func (s *Service) SetPC(pc entity.PC, account ulid.ID) error
- func (s *Service) SetPCLeft(pc entity.PCLeft, account ulid.ID) error
- func (s *Service) SetPermission(permission entity.Permission) error
- func (s *Service) SetRecurrer(recurrer event.Recurrer) error
- func (s *Service) SetSector(sec sector.S) error
- func (s *Service) SetStarter(starter sector.Starter) error
- func (s *Service) SetSync(sync infra.Sync) error
- func (s *Service) SetToken(token account.Token) error
- func (s *Service) SetTokenHC(id ulid.ID, hc int64) error
- func (s *Service) SubscribeEvent(id ulid.ID) *event.Subscription
- func (s *Service) SubscribeListener(id ulid.ID) *event.Subscription
- func (s *Service) SubscribeRecurrer(id ulid.ID) *event.Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service implements token and entity.
func NewService ¶
NewService returns a new game_01 redis Service.
func (*Service) AddEntityToSector ¶
AddEntityToSector implemented with redis.
func (*Service) DelCore ¶
func (s *Service) DelCore(subset infra.CoreSubset) error
DelCore redis implementation.
func (*Service) DelListener ¶
func (s *Service) DelListener(subset event.ListenerSubset) error
DelListener deletes listener in redis.
func (*Service) DelPermission ¶
func (s *Service) DelPermission(subset entity.PermissionSubset) error
DelPermission implemented with redis.
func (*Service) DelRecurrer ¶
func (s *Service) DelRecurrer(subset event.RecurrerSubset) error
DelRecurrer deletes recurrer in redis.
func (*Service) DelStarter ¶
func (s *Service) DelStarter(subset sector.StarterSubset) error
DelStarter redis implementation.
func (*Service) DelSync ¶
func (s *Service) DelSync(subset infra.SyncSubset) error
DelSync redis implementation.
func (*Service) DelToken ¶
func (s *Service) DelToken(subset account.TokenSubset) error
DelToken redis implementation.
func (*Service) GetAbility ¶
GetAbility implemented with redis.
func (*Service) GetAbilityFeedback ¶
GetAbilityFeedback implemented with redis.
func (*Service) GetAbilityTemplate ¶
GetAbilityTemplate implemented with redis.
func (*Service) GetAccount ¶
GetAccount implemented with redis.
func (*Service) GetEntities ¶
GetEntities implemented with redis.
func (*Service) GetEntityTemplate ¶
GetEntityTemplate implemented with redis.
func (*Service) GetListener ¶
GetListener redis implementation.
func (*Service) GetPermission ¶
func (s *Service) GetPermission(subset entity.PermissionSubset) (entity.Permission, error)
GetPermission implemented with redis.
func (*Service) GetRandomCore ¶
GetRandomCore redis implementation.
func (*Service) GetRandomStarter ¶
GetRandomStarter redis implementation.
func (*Service) GetRandomSync ¶
GetRandomSync redis implementation.
func (*Service) GetRecurrer ¶
GetRecurrer redis implementation.
func (*Service) ListAbility ¶
ListAbility implemented with redis.
func (*Service) ListAbilityTemplate ¶
ListAbilityTemplate implemented with redis.
func (*Service) ListEntityTemplate ¶
ListEntityTemplate implemented with redis.
func (*Service) ListPermission ¶
func (s *Service) ListPermission(subset entity.PermissionSubset) ([]entity.Permission, error)
ListPermission list all entity permissions of a source.
func (*Service) ListTokenHC ¶
ListTokenHC redis implementation.
func (*Service) PublishEvent ¶
PublishEvent implementation with redis pubsub.
func (*Service) PublishListener ¶
PublishListener implementation with redis pubsub.
func (*Service) PublishRecurrer ¶
PublishRecurrer implementation with redis pubsub.
func (*Service) RemoveEntityToSector ¶
RemoveEntityToSector implemented with redis.
func (*Service) SetAbility ¶
SetAbility implemented with redis.
func (*Service) SetAbilityFeedback ¶
SetAbilityFeedback implemented with redis.
func (*Service) SetAbilityTemplate ¶
SetAbilityTemplate implemented with redis.
func (*Service) SetAccount ¶
SetAccount implemented with redis.
func (*Service) SetEntityTemplate ¶
SetEntityTemplate implemented with redis.
func (*Service) SetListener ¶
SetListener redis implementation.
func (*Service) SetPermission ¶
func (s *Service) SetPermission(permission entity.Permission) error
SetPermission implemented with redis.
func (*Service) SetRecurrer ¶
SetRecurrer redis implementation.
func (*Service) SetStarter ¶
SetStarter redis implementation.
func (*Service) SetTokenHC ¶
SetTokenHC redis implementation.
func (*Service) SubscribeEvent ¶
func (s *Service) SubscribeEvent(id ulid.ID) *event.Subscription
SubscribeEvent implementation with redis pubsub.
func (*Service) SubscribeListener ¶
func (s *Service) SubscribeListener(id ulid.ID) *event.Subscription
SubscribeListener implementation with redis pubsub.
func (*Service) SubscribeRecurrer ¶
func (s *Service) SubscribeRecurrer(id ulid.ID) *event.Subscription
SubscribeRecurrer implementation with redis pubsub.