Documentation ¶
Index ¶
- func WithAfterFailed(afterFailed AfterFailed) func(*Loadastic)
- func WithAfterSend(afterSend AfterSend) func(*Loadastic)
- func WithBeforeSend(beforeSend BeforeSend) func(*Loadastic)
- func WithFailedChecker(checker FailedChecker) func(*Loadastic)
- func WithInitialWorkers(initialWorkers uint) func(*Loadastic)
- type AfterFailed
- type AfterSend
- type BeforeSend
- type FailedChecker
- type KafkaSender
- type KafkaWorker
- type Loadastic
- type RecordPayload
- type RequestFactory
- type Sender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAfterFailed ¶
func WithAfterFailed(afterFailed AfterFailed) func(*Loadastic)
func WithAfterSend ¶
func WithBeforeSend ¶
func WithBeforeSend(beforeSend BeforeSend) func(*Loadastic)
func WithFailedChecker ¶
func WithFailedChecker(checker FailedChecker) func(*Loadastic)
func WithInitialWorkers ¶
Types ¶
type AfterFailed ¶
type AfterFailed func(request RecordPayload, err error, id uint64, uuid string)
type AfterSend ¶
type AfterSend func(request RecordPayload, response interface{}, id uint64, uuid string)
type BeforeSend ¶
type BeforeSend func(request RecordPayload, tickerTimestamp time.Time, id uint64, uuid string)
type FailedChecker ¶
type FailedChecker func(response interface{}) error
type KafkaSender ¶
type KafkaSender struct {
// contains filtered or unexported fields
}
func (*KafkaSender) InitializeWorker ¶
func (ks *KafkaSender) InitializeWorker() *KafkaWorker
func (*KafkaSender) Send ¶
func (ks *KafkaSender) Send(worker *KafkaWorker, payload RecordPayload) (interface{}, error)
type KafkaWorker ¶
type KafkaWorker struct {
// contains filtered or unexported fields
}
type Loadastic ¶
type Loadastic struct {
// contains filtered or unexported fields
}
func NewLoadastic ¶
func (*Loadastic) ExecutePace ¶
func (*Loadastic) StartSteps ¶
func (l *Loadastic) StartSteps(requestFactory RequestFactory, steps ...common.Step)
type RecordPayload ¶
type RecordPayload []byte
type RequestFactory ¶
type RequestFactory func(tickerTimestamp time.Time, id uint64, uuid string) RecordPayload
func RandomRequestFactory ¶
func RandomRequestFactory(messageSize uint) RequestFactory
type Sender ¶
type Sender interface { InitializeWorker() *KafkaWorker Send(worker *KafkaWorker, request RecordPayload) (interface{}, error) }
Click to show internal directories.
Click to hide internal directories.