Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BurstParameters ¶
type BurstWriteStrategy ¶
type BurstWriteStrategy struct {
// contains filtered or unexported fields
}
func NewBurstWriteStrategy ¶
func NewBurstWriteStrategy(generator MessageGenerator, writer MessageWriter, params BurstParameters) *BurstWriteStrategy
func (*BurstWriteStrategy) StartWriter ¶
func (s *BurstWriteStrategy) StartWriter()
func (*BurstWriteStrategy) Stop ¶
func (s *BurstWriteStrategy) Stop()
type ConstantWriteStrategy ¶
type ConstantWriteStrategy struct {
// contains filtered or unexported fields
}
func NewConstantWriteStrategy ¶
func NewConstantWriteStrategy(generator MessageGenerator, writer MessageWriter, writeRate int) *ConstantWriteStrategy
func (*ConstantWriteStrategy) StartWriter ¶
func (s *ConstantWriteStrategy) StartWriter()
func (*ConstantWriteStrategy) Stop ¶
func (s *ConstantWriteStrategy) Stop()
type MessageGenerator ¶
type MessageGenerator interface {
Generate() []byte
}
type MessageWriter ¶
type MessageWriter interface {
Write([]byte)
}
Click to show internal directories.
Click to hide internal directories.