mocks

package
v0.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcknowledgeableInput

type AcknowledgeableInput struct {
	mock.Mock
}

AcknowledgeableInput is an autogenerated mock type for the AcknowledgeableInput type

func NewAcknowledgeableInput

func NewAcknowledgeableInput(t mockConstructorTestingTNewAcknowledgeableInput) *AcknowledgeableInput

NewAcknowledgeableInput creates a new instance of AcknowledgeableInput. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AcknowledgeableInput) Ack

func (_m *AcknowledgeableInput) Ack(ctx context.Context, msg *stream.Message, ack bool) error

Ack provides a mock function with given fields: ctx, msg, ack

func (*AcknowledgeableInput) AckBatch

func (_m *AcknowledgeableInput) AckBatch(ctx context.Context, msgs []*stream.Message, acks []bool) error

AckBatch provides a mock function with given fields: ctx, msgs, acks

func (*AcknowledgeableInput) Data

func (_m *AcknowledgeableInput) Data() <-chan *stream.Message

Data provides a mock function with given fields:

func (*AcknowledgeableInput) EXPECT

func (*AcknowledgeableInput) Run

Run provides a mock function with given fields: ctx

func (*AcknowledgeableInput) Stop

func (_m *AcknowledgeableInput) Stop()

Stop provides a mock function with given fields:

type AcknowledgeableInput_AckBatch_Call

type AcknowledgeableInput_AckBatch_Call struct {
	*mock.Call
}

AcknowledgeableInput_AckBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AckBatch'

func (*AcknowledgeableInput_AckBatch_Call) Return

func (*AcknowledgeableInput_AckBatch_Call) Run

func (*AcknowledgeableInput_AckBatch_Call) RunAndReturn

type AcknowledgeableInput_Ack_Call

type AcknowledgeableInput_Ack_Call struct {
	*mock.Call
}

AcknowledgeableInput_Ack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ack'

func (*AcknowledgeableInput_Ack_Call) Return

func (*AcknowledgeableInput_Ack_Call) Run

func (*AcknowledgeableInput_Ack_Call) RunAndReturn

type AcknowledgeableInput_Data_Call

type AcknowledgeableInput_Data_Call struct {
	*mock.Call
}

AcknowledgeableInput_Data_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Data'

func (*AcknowledgeableInput_Data_Call) Return

func (*AcknowledgeableInput_Data_Call) Run

func (*AcknowledgeableInput_Data_Call) RunAndReturn

func (_c *AcknowledgeableInput_Data_Call) RunAndReturn(run func() <-chan *stream.Message) *AcknowledgeableInput_Data_Call

type AcknowledgeableInput_Expecter

type AcknowledgeableInput_Expecter struct {
	// contains filtered or unexported fields
}

func (*AcknowledgeableInput_Expecter) Ack

func (_e *AcknowledgeableInput_Expecter) Ack(ctx interface{}, msg interface{}, ack interface{}) *AcknowledgeableInput_Ack_Call

Ack is a helper method to define mock.On call

  • ctx context.Context
  • msg *stream.Message
  • ack bool

func (*AcknowledgeableInput_Expecter) AckBatch

func (_e *AcknowledgeableInput_Expecter) AckBatch(ctx interface{}, msgs interface{}, acks interface{}) *AcknowledgeableInput_AckBatch_Call

AckBatch is a helper method to define mock.On call

  • ctx context.Context
  • msgs []*stream.Message
  • acks []bool

func (*AcknowledgeableInput_Expecter) Data

Data is a helper method to define mock.On call

func (*AcknowledgeableInput_Expecter) Run

Run is a helper method to define mock.On call

  • ctx context.Context

func (*AcknowledgeableInput_Expecter) Stop

Stop is a helper method to define mock.On call

type AcknowledgeableInput_Run_Call

type AcknowledgeableInput_Run_Call struct {
	*mock.Call
}

AcknowledgeableInput_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*AcknowledgeableInput_Run_Call) Return

func (*AcknowledgeableInput_Run_Call) Run

func (*AcknowledgeableInput_Run_Call) RunAndReturn

type AcknowledgeableInput_Stop_Call

type AcknowledgeableInput_Stop_Call struct {
	*mock.Call
}

AcknowledgeableInput_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'

func (*AcknowledgeableInput_Stop_Call) Return

func (*AcknowledgeableInput_Stop_Call) Run

func (*AcknowledgeableInput_Stop_Call) RunAndReturn

func (_c *AcknowledgeableInput_Stop_Call) RunAndReturn(run func()) *AcknowledgeableInput_Stop_Call

type BatchConsumerCallback

type BatchConsumerCallback struct {
	mock.Mock
}

BatchConsumerCallback is an autogenerated mock type for the BatchConsumerCallback type

func NewBatchConsumerCallback

func NewBatchConsumerCallback(t mockConstructorTestingTNewBatchConsumerCallback) *BatchConsumerCallback

NewBatchConsumerCallback creates a new instance of BatchConsumerCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BatchConsumerCallback) Consume

func (_m *BatchConsumerCallback) Consume(ctx context.Context, models []interface{}, attributes []map[string]string) ([]bool, error)

Consume provides a mock function with given fields: ctx, models, attributes

func (*BatchConsumerCallback) EXPECT

func (*BatchConsumerCallback) GetModel

func (_m *BatchConsumerCallback) GetModel(attributes map[string]string) interface{}

GetModel provides a mock function with given fields: attributes

type BatchConsumerCallback_Consume_Call

type BatchConsumerCallback_Consume_Call struct {
	*mock.Call
}

BatchConsumerCallback_Consume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Consume'

func (*BatchConsumerCallback_Consume_Call) Return

func (*BatchConsumerCallback_Consume_Call) Run

func (_c *BatchConsumerCallback_Consume_Call) Run(run func(ctx context.Context, models []interface{}, attributes []map[string]string)) *BatchConsumerCallback_Consume_Call

func (*BatchConsumerCallback_Consume_Call) RunAndReturn

func (_c *BatchConsumerCallback_Consume_Call) RunAndReturn(run func(context.Context, []interface{}, []map[string]string) ([]bool, error)) *BatchConsumerCallback_Consume_Call

type BatchConsumerCallback_Expecter

type BatchConsumerCallback_Expecter struct {
	// contains filtered or unexported fields
}

func (*BatchConsumerCallback_Expecter) Consume

func (_e *BatchConsumerCallback_Expecter) Consume(ctx interface{}, models interface{}, attributes interface{}) *BatchConsumerCallback_Consume_Call

Consume is a helper method to define mock.On call

  • ctx context.Context
  • models []interface{}
  • attributes []map[string]string

func (*BatchConsumerCallback_Expecter) GetModel

func (_e *BatchConsumerCallback_Expecter) GetModel(attributes interface{}) *BatchConsumerCallback_GetModel_Call

GetModel is a helper method to define mock.On call

  • attributes map[string]string

type BatchConsumerCallback_GetModel_Call

type BatchConsumerCallback_GetModel_Call struct {
	*mock.Call
}

BatchConsumerCallback_GetModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModel'

func (*BatchConsumerCallback_GetModel_Call) Return

func (*BatchConsumerCallback_GetModel_Call) Run

func (*BatchConsumerCallback_GetModel_Call) RunAndReturn

func (_c *BatchConsumerCallback_GetModel_Call) RunAndReturn(run func(map[string]string) interface{}) *BatchConsumerCallback_GetModel_Call

type ConsumerCallback

type ConsumerCallback struct {
	mock.Mock
}

ConsumerCallback is an autogenerated mock type for the ConsumerCallback type

func NewConsumerCallback

func NewConsumerCallback(t mockConstructorTestingTNewConsumerCallback) *ConsumerCallback

NewConsumerCallback creates a new instance of ConsumerCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConsumerCallback) Consume

func (_m *ConsumerCallback) Consume(ctx context.Context, model interface{}, attributes map[string]string) (bool, error)

Consume provides a mock function with given fields: ctx, model, attributes

func (*ConsumerCallback) EXPECT

func (*ConsumerCallback) GetModel

func (_m *ConsumerCallback) GetModel(attributes map[string]string) interface{}

GetModel provides a mock function with given fields: attributes

type ConsumerCallback_Consume_Call

type ConsumerCallback_Consume_Call struct {
	*mock.Call
}

ConsumerCallback_Consume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Consume'

func (*ConsumerCallback_Consume_Call) Return

func (*ConsumerCallback_Consume_Call) Run

func (_c *ConsumerCallback_Consume_Call) Run(run func(ctx context.Context, model interface{}, attributes map[string]string)) *ConsumerCallback_Consume_Call

func (*ConsumerCallback_Consume_Call) RunAndReturn

func (_c *ConsumerCallback_Consume_Call) RunAndReturn(run func(context.Context, interface{}, map[string]string) (bool, error)) *ConsumerCallback_Consume_Call

type ConsumerCallback_Expecter

type ConsumerCallback_Expecter struct {
	// contains filtered or unexported fields
}

func (*ConsumerCallback_Expecter) Consume

func (_e *ConsumerCallback_Expecter) Consume(ctx interface{}, model interface{}, attributes interface{}) *ConsumerCallback_Consume_Call

Consume is a helper method to define mock.On call

  • ctx context.Context
  • model interface{}
  • attributes map[string]string

func (*ConsumerCallback_Expecter) GetModel

func (_e *ConsumerCallback_Expecter) GetModel(attributes interface{}) *ConsumerCallback_GetModel_Call

GetModel is a helper method to define mock.On call

  • attributes map[string]string

type ConsumerCallback_GetModel_Call

type ConsumerCallback_GetModel_Call struct {
	*mock.Call
}

ConsumerCallback_GetModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModel'

func (*ConsumerCallback_GetModel_Call) Return

func (*ConsumerCallback_GetModel_Call) Run

func (*ConsumerCallback_GetModel_Call) RunAndReturn

func (_c *ConsumerCallback_GetModel_Call) RunAndReturn(run func(map[string]string) interface{}) *ConsumerCallback_GetModel_Call

type Input

type Input struct {
	mock.Mock
}

Input is an autogenerated mock type for the Input type

func NewInput

func NewInput(t mockConstructorTestingTNewInput) *Input

NewInput creates a new instance of Input. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Input) Data

func (_m *Input) Data() <-chan *stream.Message

Data provides a mock function with given fields:

func (*Input) EXPECT

func (_m *Input) EXPECT() *Input_Expecter

func (*Input) Run

func (_m *Input) Run(ctx context.Context) error

Run provides a mock function with given fields: ctx

func (*Input) Stop

func (_m *Input) Stop()

Stop provides a mock function with given fields:

type Input_Data_Call

type Input_Data_Call struct {
	*mock.Call
}

Input_Data_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Data'

func (*Input_Data_Call) Return

func (_c *Input_Data_Call) Return(_a0 <-chan *stream.Message) *Input_Data_Call

func (*Input_Data_Call) Run

func (_c *Input_Data_Call) Run(run func()) *Input_Data_Call

func (*Input_Data_Call) RunAndReturn

func (_c *Input_Data_Call) RunAndReturn(run func() <-chan *stream.Message) *Input_Data_Call

type Input_Expecter

type Input_Expecter struct {
	// contains filtered or unexported fields
}

func (*Input_Expecter) Data

func (_e *Input_Expecter) Data() *Input_Data_Call

Data is a helper method to define mock.On call

func (*Input_Expecter) Run

func (_e *Input_Expecter) Run(ctx interface{}) *Input_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context

func (*Input_Expecter) Stop

func (_e *Input_Expecter) Stop() *Input_Stop_Call

Stop is a helper method to define mock.On call

type Input_Run_Call

type Input_Run_Call struct {
	*mock.Call
}

Input_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*Input_Run_Call) Return

func (_c *Input_Run_Call) Return(_a0 error) *Input_Run_Call

func (*Input_Run_Call) Run

func (_c *Input_Run_Call) Run(run func(ctx context.Context)) *Input_Run_Call

func (*Input_Run_Call) RunAndReturn

func (_c *Input_Run_Call) RunAndReturn(run func(context.Context) error) *Input_Run_Call

type Input_Stop_Call

type Input_Stop_Call struct {
	*mock.Call
}

Input_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'

func (*Input_Stop_Call) Return

func (_c *Input_Stop_Call) Return() *Input_Stop_Call

func (*Input_Stop_Call) Run

func (_c *Input_Stop_Call) Run(run func()) *Input_Stop_Call

func (*Input_Stop_Call) RunAndReturn

func (_c *Input_Stop_Call) RunAndReturn(run func()) *Input_Stop_Call

type MessageEncoder

type MessageEncoder struct {
	mock.Mock
}

MessageEncoder is an autogenerated mock type for the MessageEncoder type

func NewMessageEncoder

func NewMessageEncoder(t mockConstructorTestingTNewMessageEncoder) *MessageEncoder

NewMessageEncoder creates a new instance of MessageEncoder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MessageEncoder) Decode

func (_m *MessageEncoder) Decode(ctx context.Context, msg *stream.Message, out interface{}) (context.Context, map[string]string, error)

Decode provides a mock function with given fields: ctx, msg, out

func (*MessageEncoder) EXPECT

func (*MessageEncoder) Encode

func (_m *MessageEncoder) Encode(ctx context.Context, data interface{}, attributeSets ...map[string]string) (*stream.Message, error)

Encode provides a mock function with given fields: ctx, data, attributeSets

type MessageEncoder_Decode_Call

type MessageEncoder_Decode_Call struct {
	*mock.Call
}

MessageEncoder_Decode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decode'

func (*MessageEncoder_Decode_Call) Return

func (*MessageEncoder_Decode_Call) Run

func (_c *MessageEncoder_Decode_Call) Run(run func(ctx context.Context, msg *stream.Message, out interface{})) *MessageEncoder_Decode_Call

func (*MessageEncoder_Decode_Call) RunAndReturn

type MessageEncoder_Encode_Call

type MessageEncoder_Encode_Call struct {
	*mock.Call
}

MessageEncoder_Encode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encode'

func (*MessageEncoder_Encode_Call) Return

func (*MessageEncoder_Encode_Call) Run

func (_c *MessageEncoder_Encode_Call) Run(run func(ctx context.Context, data interface{}, attributeSets ...map[string]string)) *MessageEncoder_Encode_Call

func (*MessageEncoder_Encode_Call) RunAndReturn

func (_c *MessageEncoder_Encode_Call) RunAndReturn(run func(context.Context, interface{}, ...map[string]string) (*stream.Message, error)) *MessageEncoder_Encode_Call

type MessageEncoder_Expecter

type MessageEncoder_Expecter struct {
	// contains filtered or unexported fields
}

func (*MessageEncoder_Expecter) Decode

func (_e *MessageEncoder_Expecter) Decode(ctx interface{}, msg interface{}, out interface{}) *MessageEncoder_Decode_Call

Decode is a helper method to define mock.On call

  • ctx context.Context
  • msg *stream.Message
  • out interface{}

func (*MessageEncoder_Expecter) Encode

func (_e *MessageEncoder_Expecter) Encode(ctx interface{}, data interface{}, attributeSets ...interface{}) *MessageEncoder_Encode_Call

Encode is a helper method to define mock.On call

  • ctx context.Context
  • data interface{}
  • attributeSets ...map[string]string

type Output

type Output struct {
	mock.Mock
}

Output is an autogenerated mock type for the Output type

func NewOutput

func NewOutput(t mockConstructorTestingTNewOutput) *Output

NewOutput creates a new instance of Output. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Output) EXPECT

func (_m *Output) EXPECT() *Output_Expecter

func (*Output) Write

func (_m *Output) Write(ctx context.Context, batch []stream.WritableMessage) error

Write provides a mock function with given fields: ctx, batch

func (*Output) WriteOne

func (_m *Output) WriteOne(ctx context.Context, msg stream.WritableMessage) error

WriteOne provides a mock function with given fields: ctx, msg

type Output_Expecter

type Output_Expecter struct {
	// contains filtered or unexported fields
}

func (*Output_Expecter) Write

func (_e *Output_Expecter) Write(ctx interface{}, batch interface{}) *Output_Write_Call

Write is a helper method to define mock.On call

  • ctx context.Context
  • batch []stream.WritableMessage

func (*Output_Expecter) WriteOne

func (_e *Output_Expecter) WriteOne(ctx interface{}, msg interface{}) *Output_WriteOne_Call

WriteOne is a helper method to define mock.On call

  • ctx context.Context
  • msg stream.WritableMessage

type Output_WriteOne_Call

type Output_WriteOne_Call struct {
	*mock.Call
}

Output_WriteOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteOne'

func (*Output_WriteOne_Call) Return

func (*Output_WriteOne_Call) Run

func (*Output_WriteOne_Call) RunAndReturn

type Output_Write_Call

type Output_Write_Call struct {
	*mock.Call
}

Output_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'

func (*Output_Write_Call) Return

func (_c *Output_Write_Call) Return(_a0 error) *Output_Write_Call

func (*Output_Write_Call) Run

func (_c *Output_Write_Call) Run(run func(ctx context.Context, batch []stream.WritableMessage)) *Output_Write_Call

func (*Output_Write_Call) RunAndReturn

type PartitionedOutput

type PartitionedOutput struct {
	mock.Mock
}

PartitionedOutput is an autogenerated mock type for the PartitionedOutput type

func NewPartitionedOutput

func NewPartitionedOutput(t mockConstructorTestingTNewPartitionedOutput) *PartitionedOutput

NewPartitionedOutput creates a new instance of PartitionedOutput. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PartitionedOutput) EXPECT

func (*PartitionedOutput) IsPartitionedOutput

func (_m *PartitionedOutput) IsPartitionedOutput() bool

IsPartitionedOutput provides a mock function with given fields:

func (*PartitionedOutput) Write

func (_m *PartitionedOutput) Write(ctx context.Context, batch []stream.WritableMessage) error

Write provides a mock function with given fields: ctx, batch

func (*PartitionedOutput) WriteOne

WriteOne provides a mock function with given fields: ctx, msg

type PartitionedOutput_Expecter

type PartitionedOutput_Expecter struct {
	// contains filtered or unexported fields
}

func (*PartitionedOutput_Expecter) IsPartitionedOutput

IsPartitionedOutput is a helper method to define mock.On call

func (*PartitionedOutput_Expecter) Write

func (_e *PartitionedOutput_Expecter) Write(ctx interface{}, batch interface{}) *PartitionedOutput_Write_Call

Write is a helper method to define mock.On call

  • ctx context.Context
  • batch []stream.WritableMessage

func (*PartitionedOutput_Expecter) WriteOne

func (_e *PartitionedOutput_Expecter) WriteOne(ctx interface{}, msg interface{}) *PartitionedOutput_WriteOne_Call

WriteOne is a helper method to define mock.On call

  • ctx context.Context
  • msg stream.WritableMessage

type PartitionedOutput_IsPartitionedOutput_Call

type PartitionedOutput_IsPartitionedOutput_Call struct {
	*mock.Call
}

PartitionedOutput_IsPartitionedOutput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPartitionedOutput'

func (*PartitionedOutput_IsPartitionedOutput_Call) Return

func (*PartitionedOutput_IsPartitionedOutput_Call) Run

func (*PartitionedOutput_IsPartitionedOutput_Call) RunAndReturn

type PartitionedOutput_WriteOne_Call

type PartitionedOutput_WriteOne_Call struct {
	*mock.Call
}

PartitionedOutput_WriteOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteOne'

func (*PartitionedOutput_WriteOne_Call) Return

func (*PartitionedOutput_WriteOne_Call) Run

func (*PartitionedOutput_WriteOne_Call) RunAndReturn

type PartitionedOutput_Write_Call

type PartitionedOutput_Write_Call struct {
	*mock.Call
}

PartitionedOutput_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'

func (*PartitionedOutput_Write_Call) Return

func (*PartitionedOutput_Write_Call) Run

func (*PartitionedOutput_Write_Call) RunAndReturn

type PartitionerRand

type PartitionerRand struct {
	mock.Mock
}

PartitionerRand is an autogenerated mock type for the PartitionerRand type

func NewPartitionerRand

func NewPartitionerRand(t mockConstructorTestingTNewPartitionerRand) *PartitionerRand

NewPartitionerRand creates a new instance of PartitionerRand. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PartitionerRand) EXPECT

func (*PartitionerRand) Intn

func (_m *PartitionerRand) Intn(n int) int

Intn provides a mock function with given fields: n

type PartitionerRand_Expecter

type PartitionerRand_Expecter struct {
	// contains filtered or unexported fields
}

func (*PartitionerRand_Expecter) Intn

func (_e *PartitionerRand_Expecter) Intn(n interface{}) *PartitionerRand_Intn_Call

Intn is a helper method to define mock.On call

  • n int

type PartitionerRand_Intn_Call

type PartitionerRand_Intn_Call struct {
	*mock.Call
}

PartitionerRand_Intn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Intn'

func (*PartitionerRand_Intn_Call) Return

func (*PartitionerRand_Intn_Call) Run

func (*PartitionerRand_Intn_Call) RunAndReturn

func (_c *PartitionerRand_Intn_Call) RunAndReturn(run func(int) int) *PartitionerRand_Intn_Call

type Producer

type Producer struct {
	mock.Mock
}

Producer is an autogenerated mock type for the Producer type

func NewProducer

func NewProducer(t mockConstructorTestingTNewProducer) *Producer

NewProducer creates a new instance of Producer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Producer) EXPECT

func (_m *Producer) EXPECT() *Producer_Expecter

func (*Producer) Write

func (_m *Producer) Write(ctx context.Context, models interface{}, attributeSets ...map[string]string) error

Write provides a mock function with given fields: ctx, models, attributeSets

func (*Producer) WriteOne

func (_m *Producer) WriteOne(ctx context.Context, model interface{}, attributeSets ...map[string]string) error

WriteOne provides a mock function with given fields: ctx, model, attributeSets

type ProducerDaemonAggregator

type ProducerDaemonAggregator struct {
	mock.Mock
}

ProducerDaemonAggregator is an autogenerated mock type for the ProducerDaemonAggregator type

func NewProducerDaemonAggregator

func NewProducerDaemonAggregator(t mockConstructorTestingTNewProducerDaemonAggregator) *ProducerDaemonAggregator

NewProducerDaemonAggregator creates a new instance of ProducerDaemonAggregator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ProducerDaemonAggregator) EXPECT

func (*ProducerDaemonAggregator) Flush

Flush provides a mock function with given fields:

func (*ProducerDaemonAggregator) Write

Write provides a mock function with given fields: ctx, msg

type ProducerDaemonAggregator_Expecter

type ProducerDaemonAggregator_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProducerDaemonAggregator_Expecter) Flush

Flush is a helper method to define mock.On call

func (*ProducerDaemonAggregator_Expecter) Write

func (_e *ProducerDaemonAggregator_Expecter) Write(ctx interface{}, msg interface{}) *ProducerDaemonAggregator_Write_Call

Write is a helper method to define mock.On call

  • ctx context.Context
  • msg *stream.Message

type ProducerDaemonAggregator_Flush_Call

type ProducerDaemonAggregator_Flush_Call struct {
	*mock.Call
}

ProducerDaemonAggregator_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'

func (*ProducerDaemonAggregator_Flush_Call) Return

func (*ProducerDaemonAggregator_Flush_Call) Run

func (*ProducerDaemonAggregator_Flush_Call) RunAndReturn

type ProducerDaemonAggregator_Write_Call

type ProducerDaemonAggregator_Write_Call struct {
	*mock.Call
}

ProducerDaemonAggregator_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'

func (*ProducerDaemonAggregator_Write_Call) Return

func (*ProducerDaemonAggregator_Write_Call) Run

func (*ProducerDaemonAggregator_Write_Call) RunAndReturn

type ProducerDaemonBatcher

type ProducerDaemonBatcher struct {
	mock.Mock
}

ProducerDaemonBatcher is an autogenerated mock type for the ProducerDaemonBatcher type

func NewProducerDaemonBatcher

func NewProducerDaemonBatcher(t mockConstructorTestingTNewProducerDaemonBatcher) *ProducerDaemonBatcher

NewProducerDaemonBatcher creates a new instance of ProducerDaemonBatcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ProducerDaemonBatcher) Append

Append provides a mock function with given fields: msg

func (*ProducerDaemonBatcher) EXPECT

func (*ProducerDaemonBatcher) Flush

Flush provides a mock function with given fields:

type ProducerDaemonBatcher_Append_Call

type ProducerDaemonBatcher_Append_Call struct {
	*mock.Call
}

ProducerDaemonBatcher_Append_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Append'

func (*ProducerDaemonBatcher_Append_Call) Return

func (*ProducerDaemonBatcher_Append_Call) Run

func (*ProducerDaemonBatcher_Append_Call) RunAndReturn

type ProducerDaemonBatcher_Expecter

type ProducerDaemonBatcher_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProducerDaemonBatcher_Expecter) Append

Append is a helper method to define mock.On call

  • msg *stream.Message

func (*ProducerDaemonBatcher_Expecter) Flush

Flush is a helper method to define mock.On call

type ProducerDaemonBatcher_Flush_Call

type ProducerDaemonBatcher_Flush_Call struct {
	*mock.Call
}

ProducerDaemonBatcher_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'

func (*ProducerDaemonBatcher_Flush_Call) Return

func (*ProducerDaemonBatcher_Flush_Call) Run

func (*ProducerDaemonBatcher_Flush_Call) RunAndReturn

type Producer_Expecter

type Producer_Expecter struct {
	// contains filtered or unexported fields
}

func (*Producer_Expecter) Write

func (_e *Producer_Expecter) Write(ctx interface{}, models interface{}, attributeSets ...interface{}) *Producer_Write_Call

Write is a helper method to define mock.On call

  • ctx context.Context
  • models interface{}
  • attributeSets ...map[string]string

func (*Producer_Expecter) WriteOne

func (_e *Producer_Expecter) WriteOne(ctx interface{}, model interface{}, attributeSets ...interface{}) *Producer_WriteOne_Call

WriteOne is a helper method to define mock.On call

  • ctx context.Context
  • model interface{}
  • attributeSets ...map[string]string

type Producer_WriteOne_Call

type Producer_WriteOne_Call struct {
	*mock.Call
}

Producer_WriteOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteOne'

func (*Producer_WriteOne_Call) Return

func (*Producer_WriteOne_Call) Run

func (_c *Producer_WriteOne_Call) Run(run func(ctx context.Context, model interface{}, attributeSets ...map[string]string)) *Producer_WriteOne_Call

func (*Producer_WriteOne_Call) RunAndReturn

func (_c *Producer_WriteOne_Call) RunAndReturn(run func(context.Context, interface{}, ...map[string]string) error) *Producer_WriteOne_Call

type Producer_Write_Call

type Producer_Write_Call struct {
	*mock.Call
}

Producer_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'

func (*Producer_Write_Call) Return

func (*Producer_Write_Call) Run

func (_c *Producer_Write_Call) Run(run func(ctx context.Context, models interface{}, attributeSets ...map[string]string)) *Producer_Write_Call

func (*Producer_Write_Call) RunAndReturn

func (_c *Producer_Write_Call) RunAndReturn(run func(context.Context, interface{}, ...map[string]string) error) *Producer_Write_Call

type RetryHandler

type RetryHandler struct {
	mock.Mock
}

RetryHandler is an autogenerated mock type for the RetryHandler type

func NewRetryHandler

func NewRetryHandler(t mockConstructorTestingTNewRetryHandler) *RetryHandler

NewRetryHandler creates a new instance of RetryHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RetryHandler) EXPECT

func (_m *RetryHandler) EXPECT() *RetryHandler_Expecter

func (*RetryHandler) Put

func (_m *RetryHandler) Put(ctx context.Context, msg *stream.Message) error

Put provides a mock function with given fields: ctx, msg

type RetryHandler_Expecter

type RetryHandler_Expecter struct {
	// contains filtered or unexported fields
}

func (*RetryHandler_Expecter) Put

func (_e *RetryHandler_Expecter) Put(ctx interface{}, msg interface{}) *RetryHandler_Put_Call

Put is a helper method to define mock.On call

  • ctx context.Context
  • msg *stream.Message

type RetryHandler_Put_Call

type RetryHandler_Put_Call struct {
	*mock.Call
}

RetryHandler_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'

func (*RetryHandler_Put_Call) Return

func (*RetryHandler_Put_Call) Run

func (*RetryHandler_Put_Call) RunAndReturn

type RunnableBatchConsumerCallback

type RunnableBatchConsumerCallback struct {
	mock.Mock
}

RunnableBatchConsumerCallback is an autogenerated mock type for the RunnableBatchConsumerCallback type

func NewRunnableBatchConsumerCallback

func NewRunnableBatchConsumerCallback(t mockConstructorTestingTNewRunnableBatchConsumerCallback) *RunnableBatchConsumerCallback

NewRunnableBatchConsumerCallback creates a new instance of RunnableBatchConsumerCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RunnableBatchConsumerCallback) Consume

func (_m *RunnableBatchConsumerCallback) Consume(ctx context.Context, models []interface{}, attributes []map[string]string) ([]bool, error)

Consume provides a mock function with given fields: ctx, models, attributes

func (*RunnableBatchConsumerCallback) EXPECT

func (*RunnableBatchConsumerCallback) GetModel

func (_m *RunnableBatchConsumerCallback) GetModel(attributes map[string]string) interface{}

GetModel provides a mock function with given fields: attributes

func (*RunnableBatchConsumerCallback) Run

Run provides a mock function with given fields: ctx

type RunnableBatchConsumerCallback_Consume_Call

type RunnableBatchConsumerCallback_Consume_Call struct {
	*mock.Call
}

RunnableBatchConsumerCallback_Consume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Consume'

func (*RunnableBatchConsumerCallback_Consume_Call) Return

func (*RunnableBatchConsumerCallback_Consume_Call) Run

func (_c *RunnableBatchConsumerCallback_Consume_Call) Run(run func(ctx context.Context, models []interface{}, attributes []map[string]string)) *RunnableBatchConsumerCallback_Consume_Call

func (*RunnableBatchConsumerCallback_Consume_Call) RunAndReturn

type RunnableBatchConsumerCallback_Expecter

type RunnableBatchConsumerCallback_Expecter struct {
	// contains filtered or unexported fields
}

func (*RunnableBatchConsumerCallback_Expecter) Consume

func (_e *RunnableBatchConsumerCallback_Expecter) Consume(ctx interface{}, models interface{}, attributes interface{}) *RunnableBatchConsumerCallback_Consume_Call

Consume is a helper method to define mock.On call

  • ctx context.Context
  • models []interface{}
  • attributes []map[string]string

func (*RunnableBatchConsumerCallback_Expecter) GetModel

GetModel is a helper method to define mock.On call

  • attributes map[string]string

func (*RunnableBatchConsumerCallback_Expecter) Run

Run is a helper method to define mock.On call

  • ctx context.Context

type RunnableBatchConsumerCallback_GetModel_Call

type RunnableBatchConsumerCallback_GetModel_Call struct {
	*mock.Call
}

RunnableBatchConsumerCallback_GetModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModel'

func (*RunnableBatchConsumerCallback_GetModel_Call) Return

func (*RunnableBatchConsumerCallback_GetModel_Call) Run

func (*RunnableBatchConsumerCallback_GetModel_Call) RunAndReturn

type RunnableBatchConsumerCallback_Run_Call

type RunnableBatchConsumerCallback_Run_Call struct {
	*mock.Call
}

RunnableBatchConsumerCallback_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*RunnableBatchConsumerCallback_Run_Call) Return

func (*RunnableBatchConsumerCallback_Run_Call) Run

func (*RunnableBatchConsumerCallback_Run_Call) RunAndReturn

type RunnableCallback

type RunnableCallback struct {
	mock.Mock
}

RunnableCallback is an autogenerated mock type for the RunnableCallback type

func NewRunnableCallback

func NewRunnableCallback(t mockConstructorTestingTNewRunnableCallback) *RunnableCallback

NewRunnableCallback creates a new instance of RunnableCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RunnableCallback) EXPECT

func (*RunnableCallback) Run

func (_m *RunnableCallback) Run(ctx context.Context) error

Run provides a mock function with given fields: ctx

type RunnableCallback_Expecter

type RunnableCallback_Expecter struct {
	// contains filtered or unexported fields
}

func (*RunnableCallback_Expecter) Run

func (_e *RunnableCallback_Expecter) Run(ctx interface{}) *RunnableCallback_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context

type RunnableCallback_Run_Call

type RunnableCallback_Run_Call struct {
	*mock.Call
}

RunnableCallback_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*RunnableCallback_Run_Call) Return

func (*RunnableCallback_Run_Call) Run

func (*RunnableCallback_Run_Call) RunAndReturn

type RunnableConsumerCallback

type RunnableConsumerCallback struct {
	mock.Mock
}

RunnableConsumerCallback is an autogenerated mock type for the RunnableConsumerCallback type

func NewRunnableConsumerCallback

func NewRunnableConsumerCallback(t mockConstructorTestingTNewRunnableConsumerCallback) *RunnableConsumerCallback

NewRunnableConsumerCallback creates a new instance of RunnableConsumerCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RunnableConsumerCallback) Consume

func (_m *RunnableConsumerCallback) Consume(ctx context.Context, model interface{}, attributes map[string]string) (bool, error)

Consume provides a mock function with given fields: ctx, model, attributes

func (*RunnableConsumerCallback) EXPECT

func (*RunnableConsumerCallback) GetModel

func (_m *RunnableConsumerCallback) GetModel(attributes map[string]string) interface{}

GetModel provides a mock function with given fields: attributes

func (*RunnableConsumerCallback) Run

Run provides a mock function with given fields: ctx

type RunnableConsumerCallback_Consume_Call

type RunnableConsumerCallback_Consume_Call struct {
	*mock.Call
}

RunnableConsumerCallback_Consume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Consume'

func (*RunnableConsumerCallback_Consume_Call) Return

func (*RunnableConsumerCallback_Consume_Call) Run

func (_c *RunnableConsumerCallback_Consume_Call) Run(run func(ctx context.Context, model interface{}, attributes map[string]string)) *RunnableConsumerCallback_Consume_Call

func (*RunnableConsumerCallback_Consume_Call) RunAndReturn

type RunnableConsumerCallback_Expecter

type RunnableConsumerCallback_Expecter struct {
	// contains filtered or unexported fields
}

func (*RunnableConsumerCallback_Expecter) Consume

func (_e *RunnableConsumerCallback_Expecter) Consume(ctx interface{}, model interface{}, attributes interface{}) *RunnableConsumerCallback_Consume_Call

Consume is a helper method to define mock.On call

  • ctx context.Context
  • model interface{}
  • attributes map[string]string

func (*RunnableConsumerCallback_Expecter) GetModel

func (_e *RunnableConsumerCallback_Expecter) GetModel(attributes interface{}) *RunnableConsumerCallback_GetModel_Call

GetModel is a helper method to define mock.On call

  • attributes map[string]string

func (*RunnableConsumerCallback_Expecter) Run

Run is a helper method to define mock.On call

  • ctx context.Context

type RunnableConsumerCallback_GetModel_Call

type RunnableConsumerCallback_GetModel_Call struct {
	*mock.Call
}

RunnableConsumerCallback_GetModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModel'

func (*RunnableConsumerCallback_GetModel_Call) Return

func (*RunnableConsumerCallback_GetModel_Call) Run

func (*RunnableConsumerCallback_GetModel_Call) RunAndReturn

type RunnableConsumerCallback_Run_Call

type RunnableConsumerCallback_Run_Call struct {
	*mock.Call
}

RunnableConsumerCallback_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*RunnableConsumerCallback_Run_Call) Return

func (*RunnableConsumerCallback_Run_Call) Run

func (*RunnableConsumerCallback_Run_Call) RunAndReturn

type SizeRestrictedOutput

type SizeRestrictedOutput struct {
	mock.Mock
}

SizeRestrictedOutput is an autogenerated mock type for the SizeRestrictedOutput type

func NewSizeRestrictedOutput

func NewSizeRestrictedOutput(t mockConstructorTestingTNewSizeRestrictedOutput) *SizeRestrictedOutput

NewSizeRestrictedOutput creates a new instance of SizeRestrictedOutput. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SizeRestrictedOutput) EXPECT

func (*SizeRestrictedOutput) GetMaxBatchSize

func (_m *SizeRestrictedOutput) GetMaxBatchSize() *int

GetMaxBatchSize provides a mock function with given fields:

func (*SizeRestrictedOutput) GetMaxMessageSize

func (_m *SizeRestrictedOutput) GetMaxMessageSize() *int

GetMaxMessageSize provides a mock function with given fields:

func (*SizeRestrictedOutput) Write

Write provides a mock function with given fields: ctx, batch

func (*SizeRestrictedOutput) WriteOne

WriteOne provides a mock function with given fields: ctx, msg

type SizeRestrictedOutput_Expecter

type SizeRestrictedOutput_Expecter struct {
	// contains filtered or unexported fields
}

func (*SizeRestrictedOutput_Expecter) GetMaxBatchSize

GetMaxBatchSize is a helper method to define mock.On call

func (*SizeRestrictedOutput_Expecter) GetMaxMessageSize

GetMaxMessageSize is a helper method to define mock.On call

func (*SizeRestrictedOutput_Expecter) Write

func (_e *SizeRestrictedOutput_Expecter) Write(ctx interface{}, batch interface{}) *SizeRestrictedOutput_Write_Call

Write is a helper method to define mock.On call

  • ctx context.Context
  • batch []stream.WritableMessage

func (*SizeRestrictedOutput_Expecter) WriteOne

func (_e *SizeRestrictedOutput_Expecter) WriteOne(ctx interface{}, msg interface{}) *SizeRestrictedOutput_WriteOne_Call

WriteOne is a helper method to define mock.On call

  • ctx context.Context
  • msg stream.WritableMessage

type SizeRestrictedOutput_GetMaxBatchSize_Call

type SizeRestrictedOutput_GetMaxBatchSize_Call struct {
	*mock.Call
}

SizeRestrictedOutput_GetMaxBatchSize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMaxBatchSize'

func (*SizeRestrictedOutput_GetMaxBatchSize_Call) Return

func (*SizeRestrictedOutput_GetMaxBatchSize_Call) Run

func (*SizeRestrictedOutput_GetMaxBatchSize_Call) RunAndReturn

type SizeRestrictedOutput_GetMaxMessageSize_Call

type SizeRestrictedOutput_GetMaxMessageSize_Call struct {
	*mock.Call
}

SizeRestrictedOutput_GetMaxMessageSize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMaxMessageSize'

func (*SizeRestrictedOutput_GetMaxMessageSize_Call) Return

func (*SizeRestrictedOutput_GetMaxMessageSize_Call) Run

func (*SizeRestrictedOutput_GetMaxMessageSize_Call) RunAndReturn

type SizeRestrictedOutput_WriteOne_Call

type SizeRestrictedOutput_WriteOne_Call struct {
	*mock.Call
}

SizeRestrictedOutput_WriteOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteOne'

func (*SizeRestrictedOutput_WriteOne_Call) Return

func (*SizeRestrictedOutput_WriteOne_Call) Run

func (*SizeRestrictedOutput_WriteOne_Call) RunAndReturn

type SizeRestrictedOutput_Write_Call

type SizeRestrictedOutput_Write_Call struct {
	*mock.Call
}

SizeRestrictedOutput_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'

func (*SizeRestrictedOutput_Write_Call) Return

func (*SizeRestrictedOutput_Write_Call) Run

func (*SizeRestrictedOutput_Write_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL