Documentation ¶
Index ¶
- type Synchronizer
- func (p *Synchronizer) AddSubscriber(subscriber *synchronizer.Subscriber)
- func (p *Synchronizer) Publish(ctx context.Context, key string, value interface{}, createdAt time.Time, ...) error
- func (p *Synchronizer) RemoveSubscriber(subscriber *synchronizer.Subscriber)
- func (p *Synchronizer) Start(ctx context.Context) error
- func (p *Synchronizer) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Synchronizer ¶
type Synchronizer struct {
// contains filtered or unexported fields
}
func NewSynchronizer ¶
func NewSynchronizer(marshaler marshaler.Marshaler, topic *pubsub.Topic, subscription *pubsub.Subscription) *Synchronizer
func (*Synchronizer) AddSubscriber ¶
func (p *Synchronizer) AddSubscriber(subscriber *synchronizer.Subscriber)
func (*Synchronizer) RemoveSubscriber ¶
func (p *Synchronizer) RemoveSubscriber(subscriber *synchronizer.Subscriber)
func (*Synchronizer) Stop ¶
func (p *Synchronizer) Stop() error
Click to show internal directories.
Click to hide internal directories.