Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AccountAPI = &mocks.AccountAPIMock{}
AccountAPI is a fake authentication API
var AuthAPI = &mocks.AuthAPIMock{}
AuthAPI is a fake authentication API
var CallAPI = &mocks.CallAPIClientMock{}
CallAPI is a fake call API
var ChannelAPI = &mocks.ChannelAPIClientMock{}
ChannelAPI is a fake channel API
var Cookier = &mocks.Cooky{}
Cookier is an instance of Cooky
var EmailAPI = &mocks.EmailAPIClientMock{}
EmailAPI is a fake emailing API
var FCMAPI = &mocks.FcmClient{}
FCMAPI is mock for FCM client
var FirebaseAuthAPI = &mocks.FirebaseAuth{}
FirebaseAuthAPI is firebase auth mocked
var MessagingAPI = &mocks.MessagingAPIClientMock{}
MessagingAPI is a fake messaging API
var OperationsAPI = &mocks.OperationsClientMock{}
OperationsAPI is mocked object for creating Operations APIs
var PushAPI = &mocks.PushAPIClientMock{}
PushAPI is a fake push API
var SMSAPI = &mocks.SMSAPIClientMock{}
SMSAPI is a fake sms API
var SubscriberAPI = &mocks.SubscriberAPIClientMock{}
SubscriberAPI is a fake subscriber API
Functions ¶
This section is empty.
Types ¶
type AccountAPIMock ¶
type AccountAPIMock interface { account.AccountAPIClient }
AccountAPIMock is mock for account API
type CallAPIClientMock ¶
type CallAPIClientMock interface { call.CallAPIClient }
CallAPIClientMock is a mock for call API client
type ChannelAPIClientMock ¶
type ChannelAPIClientMock interface { channel.ChannelAPIClient }
ChannelAPIClientMock is a mock for channel API client
type Cooky ¶
type Cooky interface { Decode(string, string, interface{}) error Encode(string, interface{}) (string, error) }
Cooky is generic cookie encoder and decorder
type EmailAPIClientMock ¶
type EmailAPIClientMock interface { emailing.EmailingClient }
EmailAPIClientMock is a mock for emailing API client
type FcmClient ¶
type FcmClient interface { SendWithContext(ctx context.Context, msg *fcm.Message) (*fcm.Response, error) SendWithRetry(msg *fcm.Message, retryAttempts int) (*fcm.Response, error) Send(msg *fcm.Message) (*fcm.Response, error) }
FcmClient is firebase FCM
type FirebaseAuth ¶
FirebaseAuth contains methods used in firebase authentication
type MessagingAPIClientMock ¶
type MessagingAPIClientMock interface { messaging.MessagingClient }
MessagingAPIClientMock is a mock for messaging API client
type OperationsClientMock ¶ added in v0.6.0
type OperationsClientMock interface { operation.OperationAPIClient }
OperationsClientMock is a mock for operations API client
type PushAPIClientMock ¶
type PushAPIClientMock interface { pusher.PushMessagingClient }
PushAPIClientMock is a mock for push API client
type SMSAPIClientMock ¶
type SMSAPIClientMock interface { sms.SMSAPIClient }
SMSAPIClientMock is a mock for sms API client
type SubscriberAPIClientMock ¶
type SubscriberAPIClientMock interface { subscriber.SubscriberAPIClient }
SubscriberAPIClientMock is a mock for subscriber API client