fcm

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package fcm is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FirebaseClient

type FirebaseClient interface {
	NewFcmRegIdsMsg(tokens []string, body interface{}) *gofcm.FcmClient
	Send() (*gofcm.FcmResponseStatus, error)
	SetNotificationPayload(payload *gofcm.NotificationPayload) *gofcm.FcmClient
}

FirebaseClient is a copy of "go-fcm" client methods.

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.

type NotificationConstructor

type NotificationConstructor func() Notifier

NotificationConstructor returns constructor of configured instance Notifier interface.

func NewNotification

func NewNotification(key string) NotificationConstructor

NewNotification Firebase Cloud Messaging client constructor.

type Notifier

type Notifier interface {
	Send(body string, payload fcm.NotificationPayload, tokens ...string) error
}

Notifier manages Push Notifications.

Jump to

Keyboard shortcuts

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