fcm

package
v0.0.0-...-953790c Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package fcm is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNotification

func NewNotification(key string) common.NotificationConstructor

NewNotification Firebase Cloud Messaging client constructor.

Types

type MockfirebaseClient

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

MockfirebaseClient is a mock of firebaseClient interface

func NewMockfirebaseClient

func NewMockfirebaseClient(ctrl *gomock.Controller) *MockfirebaseClient

NewMockfirebaseClient creates a new mock instance

func (*MockfirebaseClient) EXPECT

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

func (*MockfirebaseClient) NewFcmRegIdsMsg

func (m *MockfirebaseClient) NewFcmRegIdsMsg(tokens []string, body interface{}) *go_fcm.FcmClient

NewFcmRegIdsMsg mocks base method

func (*MockfirebaseClient) Send

Send mocks base method

func (*MockfirebaseClient) SetNotificationPayload

func (m *MockfirebaseClient) SetNotificationPayload(payload *go_fcm.NotificationPayload) *go_fcm.FcmClient

SetNotificationPayload mocks base method

type MockfirebaseClientMockRecorder

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

MockfirebaseClientMockRecorder is the mock recorder for MockfirebaseClient

func (*MockfirebaseClientMockRecorder) NewFcmRegIdsMsg

func (mr *MockfirebaseClientMockRecorder) NewFcmRegIdsMsg(tokens, body interface{}) *gomock.Call

NewFcmRegIdsMsg indicates an expected call of NewFcmRegIdsMsg

func (*MockfirebaseClientMockRecorder) Send

Send indicates an expected call of Send

func (*MockfirebaseClientMockRecorder) SetNotificationPayload

func (mr *MockfirebaseClientMockRecorder) SetNotificationPayload(payload interface{}) *gomock.Call

SetNotificationPayload indicates an expected call of SetNotificationPayload

type Notification

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

Notification represents messaging provider for notifications.

func (*Notification) Send

func (n *Notification) Send(body string, payload fcm.NotificationPayload, tokens ...string) error

Send send to the tokens list.

Jump to

Keyboard shortcuts

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