Documentation ¶
Overview ¶
Package mockpubsub is a generated GoMock package.
Package mockpubsub is a generated GoMock package.
Index ¶
- Constants
- type MockPubSub
- func (m *MockPubSub) EXPECT() *MockPubSubMockRecorder
- func (m *MockPubSub) Publish(arg0 uuid.UUID, arg1 pubsub.EventType, arg2 interface{})
- func (m *MockPubSub) Subscribe(arg0 uuid.UUID, arg1 pubsub.EventType, arg2 pubsub.Subscriber, ...)
- func (m *MockPubSub) Unsubscribe(arg0 uuid.UUID, arg1 pubsub.EventType, arg2 string)
- type MockPubSubMockRecorder
- type MockSubscriber
- func (m *MockSubscriber) EXPECT() *MockSubscriberMockRecorder
- func (m *MockSubscriber) GetID() string
- func (m *MockSubscriber) GetPrincipal() authentication.Principal
- func (m *MockSubscriber) Notify(payload interface{})
- func (m *MockSubscriber) NotifyUnsubscribed(ps *pubsub.ServicePubSub, sessionID uuid.UUID)
- type MockSubscriberMockRecorder
- func (mr *MockSubscriberMockRecorder) GetID() *gomock.Call
- func (mr *MockSubscriberMockRecorder) GetPrincipal() *gomock.Call
- func (mr *MockSubscriberMockRecorder) Notify(payload interface{}) *gomock.Call
- func (mr *MockSubscriberMockRecorder) NotifyUnsubscribed(ps, sessionID interface{}) *gomock.Call
Constants ¶
const ( // MockEvent is a generic mock event type for testing MockEvent pubsub.EventType = "mock.event" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPubSub ¶
type MockPubSub struct {
// contains filtered or unexported fields
}
MockPubSub is a mock of PubSub interface.
func NewMockPubSub ¶
func NewMockPubSub(ctrl *gomock.Controller) *MockPubSub
NewMockPubSub creates a new mock instance.
func (*MockPubSub) EXPECT ¶
func (m *MockPubSub) EXPECT() *MockPubSubMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPubSub) Publish ¶
func (m *MockPubSub) Publish(arg0 uuid.UUID, arg1 pubsub.EventType, arg2 interface{})
Publish mocks base method.
func (*MockPubSub) Subscribe ¶
func (m *MockPubSub) Subscribe(arg0 uuid.UUID, arg1 pubsub.EventType, arg2 pubsub.Subscriber, arg3 <-chan struct{})
Subscribe mocks base method.
func (*MockPubSub) Unsubscribe ¶
Unsubscribe mocks base method.
type MockPubSubMockRecorder ¶
type MockPubSubMockRecorder struct {
// contains filtered or unexported fields
}
MockPubSubMockRecorder is the mock recorder for MockPubSub.
func (*MockPubSubMockRecorder) Publish ¶
func (mr *MockPubSubMockRecorder) Publish(arg0, arg1, arg2 interface{}) *gomock.Call
Publish indicates an expected call of Publish.
func (*MockPubSubMockRecorder) Subscribe ¶
func (mr *MockPubSubMockRecorder) Subscribe(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe.
func (*MockPubSubMockRecorder) Unsubscribe ¶
func (mr *MockPubSubMockRecorder) Unsubscribe(arg0, arg1, arg2 interface{}) *gomock.Call
Unsubscribe indicates an expected call of Unsubscribe.
type MockSubscriber ¶
type MockSubscriber struct {
// contains filtered or unexported fields
}
MockSubscriber is a mock of Subscriber interface.
func NewMockSubscriber ¶
func NewMockSubscriber(ctrl *gomock.Controller) *MockSubscriber
NewMockSubscriber creates a new mock instance.
func (*MockSubscriber) EXPECT ¶
func (m *MockSubscriber) EXPECT() *MockSubscriberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubscriber) GetPrincipal ¶
func (m *MockSubscriber) GetPrincipal() authentication.Principal
GetPrincipal mocks base method.
func (*MockSubscriber) Notify ¶
func (m *MockSubscriber) Notify(payload interface{})
Notify mocks base method.
func (*MockSubscriber) NotifyUnsubscribed ¶
func (m *MockSubscriber) NotifyUnsubscribed(ps *pubsub.ServicePubSub, sessionID uuid.UUID)
NotifyUnsubscribed mocks base method.
type MockSubscriberMockRecorder ¶
type MockSubscriberMockRecorder struct {
// contains filtered or unexported fields
}
MockSubscriberMockRecorder is the mock recorder for MockSubscriber.
func (*MockSubscriberMockRecorder) GetID ¶
func (mr *MockSubscriberMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockSubscriberMockRecorder) GetPrincipal ¶
func (mr *MockSubscriberMockRecorder) GetPrincipal() *gomock.Call
GetPrincipal indicates an expected call of GetPrincipal.
func (*MockSubscriberMockRecorder) Notify ¶
func (mr *MockSubscriberMockRecorder) Notify(payload interface{}) *gomock.Call
Notify indicates an expected call of Notify.
func (*MockSubscriberMockRecorder) NotifyUnsubscribed ¶
func (mr *MockSubscriberMockRecorder) NotifyUnsubscribed(ps, sessionID interface{}) *gomock.Call
NotifyUnsubscribed indicates an expected call of NotifyUnsubscribed.