mock_messaging

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mock_messaging is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInterface

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

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) BatchSendDryRun

func (m *MockInterface) BatchSendDryRun(ctx context.Context, tokens []string) ([]string, error)

BatchSendDryRun mocks base method.

func (*MockInterface) BroadcastToTopic added in v1.0.0

func (m *MockInterface) BroadcastToTopic(ctx context.Context, topic string, payload map[string]string) error

BroadcastToTopic mocks base method.

func (*MockInterface) EXPECT

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

func (*MockInterface) SubscribeToTopic added in v1.0.0

func (m *MockInterface) SubscribeToTopic(ctx context.Context, deviceToken, topic string) error

SubscribeToTopic mocks base method.

func (*MockInterface) UnsubscribeFromTopic

func (m *MockInterface) UnsubscribeFromTopic(ctx context.Context, deviceToken, topic string) error

UnsubscribeFromTopic mocks base method.

type MockInterfaceMockRecorder

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

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) BatchSendDryRun

func (mr *MockInterfaceMockRecorder) BatchSendDryRun(ctx, tokens any) *gomock.Call

BatchSendDryRun indicates an expected call of BatchSendDryRun.

func (*MockInterfaceMockRecorder) BroadcastToTopic added in v1.0.0

func (mr *MockInterfaceMockRecorder) BroadcastToTopic(ctx, topic, payload any) *gomock.Call

BroadcastToTopic indicates an expected call of BroadcastToTopic.

func (*MockInterfaceMockRecorder) SubscribeToTopic added in v1.0.0

func (mr *MockInterfaceMockRecorder) SubscribeToTopic(ctx, deviceToken, topic any) *gomock.Call

SubscribeToTopic indicates an expected call of SubscribeToTopic.

func (*MockInterfaceMockRecorder) UnsubscribeFromTopic

func (mr *MockInterfaceMockRecorder) UnsubscribeFromTopic(ctx, deviceToken, topic any) *gomock.Call

UnsubscribeFromTopic indicates an expected call of UnsubscribeFromTopic.

type MockfirebaseMessenger added in v1.0.0

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

MockfirebaseMessenger is a mock of firebaseMessenger interface.

func NewMockfirebaseMessenger added in v1.0.0

func NewMockfirebaseMessenger(ctrl *gomock.Controller) *MockfirebaseMessenger

NewMockfirebaseMessenger creates a new mock instance.

func (*MockfirebaseMessenger) EXPECT added in v1.0.0

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

func (*MockfirebaseMessenger) Send added in v1.0.0

Send mocks base method.

func (*MockfirebaseMessenger) SendMulticastDryRun added in v1.0.0

func (m *MockfirebaseMessenger) SendMulticastDryRun(ctx context.Context, message *messaging.MulticastMessage) (*messaging.BatchResponse, error)

SendMulticastDryRun mocks base method.

func (*MockfirebaseMessenger) SubscribeToTopic added in v1.0.0

func (m *MockfirebaseMessenger) SubscribeToTopic(ctx context.Context, tokens []string, topic string) (*messaging.TopicManagementResponse, error)

SubscribeToTopic mocks base method.

func (*MockfirebaseMessenger) UnsubscribeFromTopic added in v1.0.0

func (m *MockfirebaseMessenger) UnsubscribeFromTopic(ctx context.Context, tokens []string, topic string) (*messaging.TopicManagementResponse, error)

UnsubscribeFromTopic mocks base method.

type MockfirebaseMessengerMockRecorder added in v1.0.0

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

MockfirebaseMessengerMockRecorder is the mock recorder for MockfirebaseMessenger.

func (*MockfirebaseMessengerMockRecorder) Send added in v1.0.0

func (mr *MockfirebaseMessengerMockRecorder) Send(ctx, message any) *gomock.Call

Send indicates an expected call of Send.

func (*MockfirebaseMessengerMockRecorder) SendMulticastDryRun added in v1.0.0

func (mr *MockfirebaseMessengerMockRecorder) SendMulticastDryRun(ctx, message any) *gomock.Call

SendMulticastDryRun indicates an expected call of SendMulticastDryRun.

func (*MockfirebaseMessengerMockRecorder) SubscribeToTopic added in v1.0.0

func (mr *MockfirebaseMessengerMockRecorder) SubscribeToTopic(ctx, tokens, topic any) *gomock.Call

SubscribeToTopic indicates an expected call of SubscribeToTopic.

func (*MockfirebaseMessengerMockRecorder) UnsubscribeFromTopic added in v1.0.0

func (mr *MockfirebaseMessengerMockRecorder) UnsubscribeFromTopic(ctx, tokens, topic any) *gomock.Call

UnsubscribeFromTopic indicates an expected call of UnsubscribeFromTopic.

Jump to

Keyboard shortcuts

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