mock_event

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mock_event is a generated GoMock package.

Package mock_event is a generated GoMock package.

Package mock_event is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBus

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

MockBus is a mock of Bus interface.

func NewMockBus

func NewMockBus(ctrl *gomock.Controller) *MockBus

NewMockBus creates a new mock instance.

func (*MockBus) EXPECT

func (m *MockBus) EXPECT() *MockBusMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBus) Publish

func (m *MockBus) Publish(ctx context.Context, events ...event.Event) error

Publish mocks base method.

func (*MockBus) Subscribe

func (m *MockBus) Subscribe(ctx context.Context, names ...string) (<-chan event.Event, <-chan error, error)

Subscribe mocks base method.

type MockBusMockRecorder

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

MockBusMockRecorder is the mock recorder for MockBus.

func (*MockBusMockRecorder) Publish

func (mr *MockBusMockRecorder) Publish(ctx interface{}, events ...interface{}) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockBusMockRecorder) Subscribe

func (mr *MockBusMockRecorder) Subscribe(ctx interface{}, names ...interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe.

type MockEvent

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

MockEvent is a mock of Event interface.

func NewMockEvent

func NewMockEvent(ctrl *gomock.Controller) *MockEvent

NewMockEvent creates a new mock instance.

func (*MockEvent) Aggregate

func (m *MockEvent) Aggregate() (uuid.UUID, string, int)

Aggregate mocks base method.

func (*MockEvent) Data

func (m *MockEvent) Data() interface{}

Data mocks base method.

func (*MockEvent) EXPECT

func (m *MockEvent) EXPECT() *MockEventMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEvent) ID

func (m *MockEvent) ID() uuid.UUID

ID mocks base method.

func (*MockEvent) Name

func (m *MockEvent) Name() string

Name mocks base method.

func (*MockEvent) Time

func (m *MockEvent) Time() time.Time

Time mocks base method.

type MockEventMockRecorder

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

MockEventMockRecorder is the mock recorder for MockEvent.

func (*MockEventMockRecorder) Aggregate

func (mr *MockEventMockRecorder) Aggregate() *gomock.Call

Aggregate indicates an expected call of Aggregate.

func (*MockEventMockRecorder) Data

func (mr *MockEventMockRecorder) Data() *gomock.Call

Data indicates an expected call of Data.

func (*MockEventMockRecorder) ID

func (mr *MockEventMockRecorder) ID() *gomock.Call

ID indicates an expected call of ID.

func (*MockEventMockRecorder) Name

func (mr *MockEventMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockEventMockRecorder) Time

func (mr *MockEventMockRecorder) Time() *gomock.Call

Time indicates an expected call of Time.

type MockQuery

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

MockQuery is a mock of Query interface.

func NewMockQuery

func NewMockQuery(ctrl *gomock.Controller) *MockQuery

NewMockQuery creates a new mock instance.

func (*MockQuery) AggregateIDs

func (m *MockQuery) AggregateIDs() []uuid.UUID

AggregateIDs mocks base method.

func (*MockQuery) AggregateNames

func (m *MockQuery) AggregateNames() []string

AggregateNames mocks base method.

func (*MockQuery) AggregateVersions

func (m *MockQuery) AggregateVersions() version.Constraints

AggregateVersions mocks base method.

func (*MockQuery) Aggregates

func (m *MockQuery) Aggregates() []event.AggregateTuple

Aggregates mocks base method.

func (*MockQuery) EXPECT

func (m *MockQuery) EXPECT() *MockQueryMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockQuery) IDs

func (m *MockQuery) IDs() []uuid.UUID

IDs mocks base method.

func (*MockQuery) Names

func (m *MockQuery) Names() []string

Names mocks base method.

func (*MockQuery) Sortings

func (m *MockQuery) Sortings() []event.SortOptions

Sortings mocks base method.

func (*MockQuery) Times

func (m *MockQuery) Times() time.Constraints

Times mocks base method.

type MockQueryMockRecorder

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

MockQueryMockRecorder is the mock recorder for MockQuery.

func (*MockQueryMockRecorder) AggregateIDs

func (mr *MockQueryMockRecorder) AggregateIDs() *gomock.Call

AggregateIDs indicates an expected call of AggregateIDs.

func (*MockQueryMockRecorder) AggregateNames

func (mr *MockQueryMockRecorder) AggregateNames() *gomock.Call

AggregateNames indicates an expected call of AggregateNames.

func (*MockQueryMockRecorder) AggregateVersions

func (mr *MockQueryMockRecorder) AggregateVersions() *gomock.Call

AggregateVersions indicates an expected call of AggregateVersions.

func (*MockQueryMockRecorder) Aggregates

func (mr *MockQueryMockRecorder) Aggregates() *gomock.Call

Aggregates indicates an expected call of Aggregates.

func (*MockQueryMockRecorder) IDs

func (mr *MockQueryMockRecorder) IDs() *gomock.Call

IDs indicates an expected call of IDs.

func (*MockQueryMockRecorder) Names

func (mr *MockQueryMockRecorder) Names() *gomock.Call

Names indicates an expected call of Names.

func (*MockQueryMockRecorder) Sortings

func (mr *MockQueryMockRecorder) Sortings() *gomock.Call

Sortings indicates an expected call of Sortings.

func (*MockQueryMockRecorder) Times

func (mr *MockQueryMockRecorder) Times() *gomock.Call

Times indicates an expected call of Times.

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) Delete

func (m *MockStore) Delete(arg0 context.Context, arg1 ...event.Event) error

Delete mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStore) Find

func (m *MockStore) Find(arg0 context.Context, arg1 uuid.UUID) (event.Event, error)

Find mocks base method.

func (*MockStore) Insert

func (m *MockStore) Insert(arg0 context.Context, arg1 ...event.Event) error

Insert mocks base method.

func (*MockStore) Query

func (m *MockStore) Query(arg0 context.Context, arg1 event.Query) (<-chan event.Event, <-chan error, error)

Query mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) Delete

func (mr *MockStoreMockRecorder) Delete(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockStoreMockRecorder) Find

func (mr *MockStoreMockRecorder) Find(arg0, arg1 interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockStoreMockRecorder) Insert

func (mr *MockStoreMockRecorder) Insert(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockStoreMockRecorder) Query

func (mr *MockStoreMockRecorder) Query(arg0, arg1 interface{}) *gomock.Call

Query indicates an expected call of Query.

Jump to

Keyboard shortcuts

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