Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Topic ¶
type Topic struct { ProjectID string // contains filtered or unexported fields }
Topic encapsulates the message queue topic
func (*Topic) Subscribe ¶
func (t *Topic) Subscribe(ctx context.Context, consumerGroup string, fn func(ctx context.Context, err error, s *gauge.Snapshot) error) error
Subscribe reads AVRO encoded snapshots from the topic and decodes them
Note a zero length consumerGroup means auto-generate the pubsub subscription string and delete once done.
Click to show internal directories.
Click to hide internal directories.