mocks

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountAPI = &mocks.AccountAPIMock{}

AccountAPI is a fake authentication API

View Source
var AuthAPI = &mocks.AuthAPIMock{}

AuthAPI is a fake authentication API

CallAPI is a fake call API

View Source
var ChannelAPI = &mocks.ChannelAPIClientMock{}

ChannelAPI is a fake channel API

View Source
var Cookier = &mocks.Cooky{}

Cookier is an instance of Cooky

EmailAPI is a fake emailing API

View Source
var FCMAPI = &mocks.FcmClient{}

FCMAPI is mock for FCM client

View Source
var FirebaseAuthAPI = &mocks.FirebaseAuth{}

FirebaseAuthAPI is firebase auth mocked

View Source
var MessagingAPI = &mocks.MessagingAPIClientMock{}

MessagingAPI is a fake messaging API

PushAPI is a fake push API

SMSAPI is a fake sms API

View Source
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 AuthAPIMock

type AuthAPIMock interface {
	auth.API
}

AuthAPIMock is auth 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

type FirebaseAuth interface {
	VerifyIDToken(context.Context, string) (*fauth.Token, error)
}

FirebaseAuth contains methods used in firebase authentication

type LongrunningClientMock

type LongrunningClientMock interface {
	longrunning.OperationAPIClient
}

LongrunningClientMock is a mock for longrunnings API client

type MessagingAPIClientMock

type MessagingAPIClientMock interface {
	messaging.MessagingClient
}

MessagingAPIClientMock is a mock for messaging 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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