Documentation
¶
Index ¶
- type Broker
- func (b *Broker) Close()
- func (b *Broker) Config() *config.Config
- func (b *Broker) FetchQ1(offset uint64, batchSize int) ([]*common.Message, error)
- func (b *Broker) Flow(msg *common.Message)
- func (b *Broker) InitOffset(id string, persistent bool) (uint64, error)
- func (b *Broker) MsgQ0Chan() <-chan *common.Message
- func (b *Broker) OffsetChanLen() int
- func (b *Broker) OffsetPersisted(id string) (*uint64, error)
- func (b *Broker) PersistOffset(id string, offset uint64) error
- func (b *Broker) WaitOffsetPersisted()
- type Offset
- type Report
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker a mqtt broker
func (*Broker) InitOffset ¶
InitOffset init offset
func (*Broker) OffsetChanLen ¶
OffsetChanLen returns the length of offset channel
func (*Broker) OffsetPersisted ¶
OffsetPersisted gets sink's offset from database
func (*Broker) PersistOffset ¶
PersistOffset puts sink's offset to offset channal
func (*Broker) WaitOffsetPersisted ¶
func (b *Broker) WaitOffsetPersisted()
WaitOffsetPersisted waits all offsets in channel to be persisted
Click to show internal directories.
Click to hide internal directories.