Documentation ¶
Overview ¶
Package event is a generated GoMock package.
Index ¶
- type MockProcessor
- func (m *MockProcessor) Close(ctx context.Context) error
- func (m *MockProcessor) EXPECT() *MockProcessorMockRecorder
- func (m *MockProcessor) PushDefaultEvaluationEvent(ctx context.Context, user *user.User, featureID string)
- func (m *MockProcessor) PushErrorEvent(ctx context.Context, err error, api model.APIID)
- func (m *MockProcessor) PushEvaluationEvent(ctx context.Context, user *user.User, evaluation *model.Evaluation)
- func (m *MockProcessor) PushGoalEvent(ctx context.Context, user *user.User, GoalID string, value float64)
- func (m *MockProcessor) PushLatencyMetricsEvent(ctx context.Context, duration time.Duration, api model.APIID)
- func (m *MockProcessor) PushSizeMetricsEvent(ctx context.Context, sizeByte int, api model.APIID)
- type MockProcessorMockRecorder
- func (mr *MockProcessorMockRecorder) Close(ctx interface{}) *gomock.Call
- func (mr *MockProcessorMockRecorder) PushDefaultEvaluationEvent(ctx, user, featureID interface{}) *gomock.Call
- func (mr *MockProcessorMockRecorder) PushErrorEvent(ctx, err, api interface{}) *gomock.Call
- func (mr *MockProcessorMockRecorder) PushEvaluationEvent(ctx, user, evaluation interface{}) *gomock.Call
- func (mr *MockProcessorMockRecorder) PushGoalEvent(ctx, user, GoalID, value interface{}) *gomock.Call
- func (mr *MockProcessorMockRecorder) PushLatencyMetricsEvent(ctx, duration, api interface{}) *gomock.Call
- func (mr *MockProcessorMockRecorder) PushSizeMetricsEvent(ctx, sizeByte, api interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProcessor ¶
type MockProcessor struct {
// contains filtered or unexported fields
}
MockProcessor is a mock of Processor interface.
func NewMockProcessor ¶
func NewMockProcessor(ctrl *gomock.Controller) *MockProcessor
NewMockProcessor creates a new mock instance.
func (*MockProcessor) Close ¶
func (m *MockProcessor) Close(ctx context.Context) error
Close mocks base method.
func (*MockProcessor) EXPECT ¶
func (m *MockProcessor) EXPECT() *MockProcessorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProcessor) PushDefaultEvaluationEvent ¶
func (m *MockProcessor) PushDefaultEvaluationEvent(ctx context.Context, user *user.User, featureID string)
PushDefaultEvaluationEvent mocks base method.
func (*MockProcessor) PushErrorEvent ¶
PushErrorEvent mocks base method.
func (*MockProcessor) PushEvaluationEvent ¶
func (m *MockProcessor) PushEvaluationEvent(ctx context.Context, user *user.User, evaluation *model.Evaluation)
PushEvaluationEvent mocks base method.
func (*MockProcessor) PushGoalEvent ¶
func (m *MockProcessor) PushGoalEvent(ctx context.Context, user *user.User, GoalID string, value float64)
PushGoalEvent mocks base method.
func (*MockProcessor) PushLatencyMetricsEvent ¶
func (m *MockProcessor) PushLatencyMetricsEvent(ctx context.Context, duration time.Duration, api model.APIID)
PushLatencyMetricsEvent mocks base method.
func (*MockProcessor) PushSizeMetricsEvent ¶
PushSizeMetricsEvent mocks base method.
type MockProcessorMockRecorder ¶
type MockProcessorMockRecorder struct {
// contains filtered or unexported fields
}
MockProcessorMockRecorder is the mock recorder for MockProcessor.
func (*MockProcessorMockRecorder) Close ¶
func (mr *MockProcessorMockRecorder) Close(ctx interface{}) *gomock.Call
Close indicates an expected call of Close.
func (*MockProcessorMockRecorder) PushDefaultEvaluationEvent ¶
func (mr *MockProcessorMockRecorder) PushDefaultEvaluationEvent(ctx, user, featureID interface{}) *gomock.Call
PushDefaultEvaluationEvent indicates an expected call of PushDefaultEvaluationEvent.
func (*MockProcessorMockRecorder) PushErrorEvent ¶
func (mr *MockProcessorMockRecorder) PushErrorEvent(ctx, err, api interface{}) *gomock.Call
PushErrorEvent indicates an expected call of PushErrorEvent.
func (*MockProcessorMockRecorder) PushEvaluationEvent ¶
func (mr *MockProcessorMockRecorder) PushEvaluationEvent(ctx, user, evaluation interface{}) *gomock.Call
PushEvaluationEvent indicates an expected call of PushEvaluationEvent.
func (*MockProcessorMockRecorder) PushGoalEvent ¶
func (mr *MockProcessorMockRecorder) PushGoalEvent(ctx, user, GoalID, value interface{}) *gomock.Call
PushGoalEvent indicates an expected call of PushGoalEvent.
func (*MockProcessorMockRecorder) PushLatencyMetricsEvent ¶
func (mr *MockProcessorMockRecorder) PushLatencyMetricsEvent(ctx, duration, api interface{}) *gomock.Call
PushLatencyMetricsEvent indicates an expected call of PushLatencyMetricsEvent.
func (*MockProcessorMockRecorder) PushSizeMetricsEvent ¶
func (mr *MockProcessorMockRecorder) PushSizeMetricsEvent(ctx, sizeByte, api interface{}) *gomock.Call
PushSizeMetricsEvent indicates an expected call of PushSizeMetricsEvent.