Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerOption ¶
type ConsumerOption func(options *ConsumerOptions)
func NewRateLimitPeriod ¶
func NewRateLimitPeriod(d time.Duration) ConsumerOption
func UseBLPop ¶
func UseBLPop(u bool) ConsumerOption
type ConsumerOptions ¶
type Message ¶
type Message struct { ID string `json:"id"` Body []byte `json:"body"` Timestamp int64 `json:"timestamp"` DelayTime int64 `json:"delayTime"` // contains filtered or unexported fields }
func NewMessage ¶
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
Click to show internal directories.
Click to hide internal directories.