Documentation ¶
Index ¶
- Constants
- type Manager
- func (m *Manager) PublishToAssociation(ctx context.Context, targetID string, taskType string, payload []byte) error
- func (m *Manager) PublishToManager(ctx context.Context, targetID string, taskType string, payload []byte) error
- func (m *Manager) SetSubscribeHandler(handler SubscribeHandler)
- func (m *Manager) StartManager(id string, associationID string, errorCh chan error)
- type SubscribeHandler
Constants ¶
View Source
const ( PrefixManager = "MANAGER_" PrefixAssociation = "ASSOCIATION_" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { ID string AssociationID string FirestoreClient *firestore.Client Mu sync.Mutex // contains filtered or unexported fields }
func NewManager ¶
func (*Manager) PublishToAssociation ¶
func (*Manager) PublishToManager ¶
func (*Manager) SetSubscribeHandler ¶
func (m *Manager) SetSubscribeHandler(handler SubscribeHandler)
type SubscribeHandler ¶
Click to show internal directories.
Click to hide internal directories.