psmock

package
v2.24.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

package psmock contains a mocked implementation of the pubsub.Pubsub interface for use in tests

Package psmock is a generated GoMock package.

Index

Constants

This section is empty.

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) Close

func (m *MockPubsub) Close() error

Close mocks base method.

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

Publish mocks base method.

func (*MockPubsub) Subscribe

func (m *MockPubsub) Subscribe(event string, listener pubsub.Listener) (func(), error)

Subscribe mocks base method.

func (*MockPubsub) SubscribeWithErr

func (m *MockPubsub) SubscribeWithErr(event string, listener pubsub.ListenerWithErr) (func(), error)

SubscribeWithErr mocks base method.

type MockPubsubMockRecorder

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

MockPubsubMockRecorder is the mock recorder for MockPubsub.

func (*MockPubsubMockRecorder) Close

func (mr *MockPubsubMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockPubsubMockRecorder) Publish

func (mr *MockPubsubMockRecorder) Publish(event, message any) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockPubsubMockRecorder) Subscribe

func (mr *MockPubsubMockRecorder) Subscribe(event, listener any) *gomock.Call

Subscribe indicates an expected call of Subscribe.

func (*MockPubsubMockRecorder) SubscribeWithErr

func (mr *MockPubsubMockRecorder) SubscribeWithErr(event, listener any) *gomock.Call

SubscribeWithErr indicates an expected call of SubscribeWithErr.

Jump to

Keyboard shortcuts

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

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy