Documentation
¶
Overview ¶
Package mock_messaging is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) BatchSendDryRun(ctx context.Context, tokens []string) ([]string, error)
- func (m *MockInterface) BroadcastToTopic(ctx context.Context, topic string, payload map[string]string) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) SubscribeToTopic(ctx context.Context, deviceToken, topic string) error
- func (m *MockInterface) UnsubscribeFromTopic(ctx context.Context, deviceToken, topic string) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) BatchSendDryRun(ctx, tokens any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) BroadcastToTopic(ctx, topic, payload any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SubscribeToTopic(ctx, deviceToken, topic any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UnsubscribeFromTopic(ctx, deviceToken, topic any) *gomock.Call
- type MockfirebaseMessenger
- func (m *MockfirebaseMessenger) EXPECT() *MockfirebaseMessengerMockRecorder
- func (m *MockfirebaseMessenger) Send(ctx context.Context, message *messaging.Message) (string, error)
- func (m *MockfirebaseMessenger) SendMulticastDryRun(ctx context.Context, message *messaging.MulticastMessage) (*messaging.BatchResponse, error)
- func (m *MockfirebaseMessenger) SubscribeToTopic(ctx context.Context, tokens []string, topic string) (*messaging.TopicManagementResponse, error)
- func (m *MockfirebaseMessenger) UnsubscribeFromTopic(ctx context.Context, tokens []string, topic string) (*messaging.TopicManagementResponse, error)
- type MockfirebaseMessengerMockRecorder
- func (mr *MockfirebaseMessengerMockRecorder) Send(ctx, message any) *gomock.Call
- func (mr *MockfirebaseMessengerMockRecorder) SendMulticastDryRun(ctx, message any) *gomock.Call
- func (mr *MockfirebaseMessengerMockRecorder) SubscribeToTopic(ctx, tokens, topic any) *gomock.Call
- func (mr *MockfirebaseMessengerMockRecorder) UnsubscribeFromTopic(ctx, tokens, topic any) *gomock.Call
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 ¶
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 ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
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
func (m *MockfirebaseMessenger) EXPECT() *MockfirebaseMessengerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockfirebaseMessenger) Send ¶ added in v1.0.0
func (m *MockfirebaseMessenger) Send(ctx context.Context, message *messaging.Message) (string, error)
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.