Documentation ¶
Overview ¶
Package fcm is a generated GoMock package.
Index ¶
- type FirebaseClient
- type MockFirebaseClient
- func (m *MockFirebaseClient) EXPECT() *MockFirebaseClientMockRecorder
- func (m *MockFirebaseClient) NewFcmRegIdsMsg(tokens []string, body interface{}) *go_fcm.FcmClient
- func (m *MockFirebaseClient) Send() (*go_fcm.FcmResponseStatus, error)
- func (m *MockFirebaseClient) SetNotificationPayload(payload *go_fcm.NotificationPayload) *go_fcm.FcmClient
- type MockFirebaseClientMockRecorder
- type Notification
- type NotificationConstructor
- type Notifier
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 ¶
func (m *MockFirebaseClient) EXPECT() *MockFirebaseClientMockRecorder
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 ¶
func (m *MockFirebaseClient) Send() (*go_fcm.FcmResponseStatus, error)
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 ¶
func (mr *MockFirebaseClientMockRecorder) Send() *gomock.Call
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.
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.