mockpubsub

package
v0.0.0-...-5acab9f Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mockpubsub is a generated GoMock package.

Package mockpubsub is a generated GoMock package.

Index

Constants

View Source
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

func (m *MockPubSub) Unsubscribe(arg0 uuid.UUID, arg1 pubsub.EventType, arg2 string)

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

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

func (*MockSubscriber) GetID

func (m *MockSubscriber) GetID() string

GetID mocks base method.

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.

Jump to

Keyboard shortcuts

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