Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTimeout = time.Millisecond * 100
DefaultTimeout for broadcasting records to subscribers.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AggregateTypeSubscription ¶
type AggregateTypeSubscription struct { AggregateType string Subscriber RecordSubscriber }
AggregateTypeSubscription defines an aggregate type subscriber.
type Broadcaster ¶
type Broadcaster interface { Accept(record *rangedb.Record) SubscribeAllEvents(subscribers ...RecordSubscriber) UnsubscribeAllEvents(subscribers ...RecordSubscriber) SubscribeAggregateTypes(subscriber RecordSubscriber, aggregateTypes ...string) UnsubscribeAggregateTypes(subscriber RecordSubscriber, aggregateTypes ...string) Close() }
Broadcaster defines a record broadcaster.
type RecordSubscriber ¶
type RecordSubscriber interface { Receiver() SendRecordChan Stop() }
RecordSubscriber defines how a rangedb.Record is received.
type SendRecordChan ¶
SendRecordChan is a write only channel for rangedb.Record.
Click to show internal directories.
Click to hide internal directories.