mock

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: pkg/messaging/point2point.go

Generated by this command:

mockgen -source pkg/messaging/point2point.go -destination /home/cody/Documents/work/personal/cryptonium/mpcium//artifacts/mock/directmessaging_mock.go -package mock

Package mock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: pkg/messaging/pubsub.go

Generated by this command:

mockgen -source pkg/messaging/pubsub.go -destination /home/cody/Documents/work/personal/cryptonium/mpcium//artifacts/mock/pubsub_mock.go -package mock

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDirectMessaging

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

MockDirectMessaging is a mock of DirectMessaging interface.

func NewMockDirectMessaging

func NewMockDirectMessaging(ctrl *gomock.Controller) *MockDirectMessaging

NewMockDirectMessaging creates a new mock instance.

func (*MockDirectMessaging) EXPECT

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

func (*MockDirectMessaging) Listen

func (m *MockDirectMessaging) Listen(target string, handler func([]byte)) error

Listen mocks base method.

func (*MockDirectMessaging) Send

func (m *MockDirectMessaging) Send(target string, data []byte) error

Send mocks base method.

type MockDirectMessagingMockRecorder

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

MockDirectMessagingMockRecorder is the mock recorder for MockDirectMessaging.

func (*MockDirectMessagingMockRecorder) Listen

func (mr *MockDirectMessagingMockRecorder) Listen(target, handler any) *gomock.Call

Listen indicates an expected call of Listen.

func (*MockDirectMessagingMockRecorder) Send

func (mr *MockDirectMessagingMockRecorder) Send(target, data any) *gomock.Call

Send indicates an expected call of Send.

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(topic string, message []byte) error

Publish mocks base method.

func (*MockPubSub) Subscribe

func (m *MockPubSub) Subscribe(topic string, handler func([]byte)) error

Subscribe 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(topic, message any) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockPubSubMockRecorder) Subscribe

func (mr *MockPubSubMockRecorder) Subscribe(topic, handler any) *gomock.Call

Subscribe indicates an expected call of Subscribe.

Jump to

Keyboard shortcuts

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