Documentation
¶
Index ¶
- func TopicWritingRule(option topic.Option, fragments []uint) func() []uint
- type Publisher
- type RetrievablePublisher
- func (p *RetrievablePublisher) RetrievableSubscribe(stream pb.RetrievablePubSub_RetrievableSubscribeServer) error
- func (p *RetrievablePublisher) StartTopicPublication(ctx context.Context, topicName string, retentionPeriodSec uint64, ...) (chan []TopicDataResult, chan error, error)
- func (p *RetrievablePublisher) Wait()
- type RetrievableSubscriber
- type RetrievableSubscriptionResults
- type Subscriber
- type SubscriptionAddrs
- type SubscriptionResult
- type TopicData
- type TopicDataResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Publisher ¶
type Publisher struct { pb.PubSubServer // contains filtered or unexported fields }
func NewPublisher ¶
func NewPublisher(id string, address string, db *storage.DB, bootstrapper *bootstrapping.BootstrapService, publishedOffsets, fetchedOffsets storage.TopicFragmentOffsets) Publisher
func (*Publisher) StartTopicPublication ¶
func (*Publisher) Subscribe ¶
func (p *Publisher) Subscribe(subscription *pb.Subscription, stream pb.PubSub_SubscribeServer) error
type RetrievablePublisher ¶
type RetrievablePublisher struct { pb.RetrievablePubSubServer // contains filtered or unexported fields }
func NewRetrievablePublisher ¶
func NewRetrievablePublisher(id string, address string, db *storage.DB, bootstrapper *bootstrapping.BootstrapService, publishedOffsets, fetchedOffsets storage.TopicFragmentOffsets) RetrievablePublisher
func (*RetrievablePublisher) RetrievableSubscribe ¶
func (p *RetrievablePublisher) RetrievableSubscribe(stream pb.RetrievablePubSub_RetrievableSubscribeServer) error
func (*RetrievablePublisher) StartTopicPublication ¶
func (p *RetrievablePublisher) StartTopicPublication(ctx context.Context, topicName string, retentionPeriodSec uint64, inStream chan TopicData) (chan []TopicDataResult, chan error, error)
func (*RetrievablePublisher) Wait ¶
func (p *RetrievablePublisher) Wait()
type RetrievableSubscriber ¶
type RetrievableSubscriber struct {
// contains filtered or unexported fields
}
func NewRetrievableSubscriber ¶
func NewRetrievableSubscriber(id string, bootstrapper *bootstrapping.BootstrapService, subscribedOffsets storage.TopicFragmentOffsets) RetrievableSubscriber
func (*RetrievableSubscriber) StartTopicSubscription ¶
func (s *RetrievableSubscriber) StartTopicSubscription(ctx context.Context, topicName string, batchSize, flushInterval uint32) (chan RetrievableSubscriptionResults, chan error, error)
func (*RetrievableSubscriber) Wait ¶
func (s *RetrievableSubscriber) Wait()
type RetrievableSubscriptionResults ¶
type RetrievableSubscriptionResults struct { Results []SubscriptionResult SendBack func([]SubscriptionResult) error }
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber(id string, bootstrapper *bootstrapping.BootstrapService, subscribedOffsets storage.TopicFragmentOffsets) Subscriber
func (*Subscriber) StartTopicSubscription ¶
func (s *Subscriber) StartTopicSubscription(ctx context.Context, topicName string, batchSize, flushInterval uint32) (chan []SubscriptionResult, chan error, error)
func (*Subscriber) Wait ¶
func (s *Subscriber) Wait()
type SubscriptionAddrs ¶
type SubscriptionResult ¶
type TopicDataResult ¶
Click to show internal directories.
Click to hide internal directories.