mocks

package
v0.11.9 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountAPIMock

type AccountAPIMock struct {
	mock.Mock
}

AccountAPIMock is an autogenerated mock type for the AccountAPIMock type

func (*AccountAPIMock) ActivateAccount

ActivateAccount provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) ActivateAccountOTP

ActivateAccountOTP provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) AdminUpdateAccount

func (_m *AccountAPIMock) AdminUpdateAccount(ctx context.Context, in *account.AdminUpdateAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

AdminUpdateAccount provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) BatchGetAccounts

BatchGetAccounts provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) CreateAccount

CreateAccount provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) DeleteAccount

func (_m *AccountAPIMock) DeleteAccount(ctx context.Context, in *account.DeleteAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

DeleteAccount provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) ExistAccount

ExistAccount provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) GetAccount

GetAccount provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) GetLinkedAccounts

GetLinkedAccounts provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) ListAccounts

ListAccounts provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) RefreshSession

RefreshSession provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) RequestActivateAccountOTP

func (_m *AccountAPIMock) RequestActivateAccountOTP(ctx context.Context, in *account.RequestActivateAccountOTPRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

RequestActivateAccountOTP provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) RequestChangePrivateAccount

RequestChangePrivateAccount provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) RequestSignInOTP

func (_m *AccountAPIMock) RequestSignInOTP(ctx context.Context, in *account.RequestSignInOTPRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

RequestSignInOTP provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) SearchAccounts

func (_m *AccountAPIMock) SearchAccounts(ctx context.Context, in *account.SearchAccountsRequest, opts ...grpc.CallOption) (*account.Accounts, error)

SearchAccounts provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) SignIn

SignIn provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) SignInExternal

SignInExternal provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) SignInOTP

SignInOTP provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) UpdateAccount

func (_m *AccountAPIMock) UpdateAccount(ctx context.Context, in *account.UpdateAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

UpdateAccount provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) UpdatePrivateAccount

func (_m *AccountAPIMock) UpdatePrivateAccount(ctx context.Context, in *account.UpdatePrivateAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

UpdatePrivateAccount provides a mock function with given fields: ctx, in, opts

func (*AccountAPIMock) UpdatePrivateAccountExternal

func (_m *AccountAPIMock) UpdatePrivateAccountExternal(ctx context.Context, in *account.UpdatePrivateAccountExternalRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

UpdatePrivateAccountExternal provides a mock function with given fields: ctx, in, opts

type AuthAPIMock

type AuthAPIMock struct {
	mock.Mock
}

AuthAPIMock is an autogenerated mock type for the AuthAPIMock type

func (*AuthAPIMock) AdminGroups

func (_m *AuthAPIMock) AdminGroups() []string

AdminGroups provides a mock function with given fields:

func (*AuthAPIMock) AuthenticateRequest

func (_m *AuthAPIMock) AuthenticateRequest(ctx context.Context) error

AuthenticateRequest provides a mock function with given fields: ctx

func (*AuthAPIMock) AuthenticateRequestV2

func (_m *AuthAPIMock) AuthenticateRequestV2(ctx context.Context) (*auth.Payload, error)

AuthenticateRequestV2 provides a mock function with given fields: ctx

func (*AuthAPIMock) AuthorizeActor

func (_m *AuthAPIMock) AuthorizeActor(ctx context.Context, actorID string) (*auth.Payload, error)

AuthorizeActor provides a mock function with given fields: ctx, actorID

func (*AuthAPIMock) AuthorizeActorAndGroup

func (_m *AuthAPIMock) AuthorizeActorAndGroup(ctx context.Context, actorID string, allowedGroups ...string) (*auth.Payload, error)

AuthorizeActorAndGroup provides a mock function with given fields: ctx, actorID, allowedGroups

func (*AuthAPIMock) AuthorizeActorOrGroup

func (_m *AuthAPIMock) AuthorizeActorOrGroup(ctx context.Context, actorID string, allowedGroups ...string) (*auth.Payload, error)

AuthorizeActorOrGroup provides a mock function with given fields: ctx, actorID, allowedGroups

func (*AuthAPIMock) AuthorizeActors

func (_m *AuthAPIMock) AuthorizeActors(ctx context.Context, actorID ...string) (*auth.Payload, error)

AuthorizeActors provides a mock function with given fields: ctx, actorID

func (*AuthAPIMock) AuthorizeAdmin

func (_m *AuthAPIMock) AuthorizeAdmin(ctx context.Context) (*auth.Payload, error)

AuthorizeAdmin provides a mock function with given fields: ctx

func (*AuthAPIMock) AuthorizeAdminStrict

func (_m *AuthAPIMock) AuthorizeAdminStrict(ctx context.Context, adminID string) (*auth.Payload, error)

AuthorizeAdminStrict provides a mock function with given fields: ctx, adminID

func (*AuthAPIMock) AuthorizeFunc

func (_m *AuthAPIMock) AuthorizeFunc(ctx context.Context) (context.Context, error)

AuthorizeFunc provides a mock function with given fields: ctx

func (*AuthAPIMock) AuthorizeGroup

func (_m *AuthAPIMock) AuthorizeGroup(ctx context.Context, allowedGroups ...string) (*auth.Payload, error)

AuthorizeGroup provides a mock function with given fields: ctx, allowedGroups

func (*AuthAPIMock) GenToken

func (_m *AuthAPIMock) GenToken(ctx context.Context, payload *auth.Payload, expires time.Time) (string, error)

GenToken provides a mock function with given fields: ctx, payload, expires

func (*AuthAPIMock) GetJwtPayload

func (_m *AuthAPIMock) GetJwtPayload(ctx context.Context) (*auth.Payload, error)

GetJwtPayload provides a mock function with given fields: ctx

func (*AuthAPIMock) GetPayloadFromJwt

func (_m *AuthAPIMock) GetPayloadFromJwt(jwt string) (*auth.Payload, error)

GetPayloadFromJwt provides a mock function with given fields: jwt

func (*AuthAPIMock) IsAdmin

func (_m *AuthAPIMock) IsAdmin(group string) bool

IsAdmin provides a mock function with given fields: group

type CallAPIClientMock

type CallAPIClientMock struct {
	mock.Mock
}

CallAPIClientMock is an autogenerated mock type for the CallAPIClientMock type

func (*CallAPIClientMock) Call

Call provides a mock function with given fields: ctx, in, opts

type ChannelAPIClientMock

type ChannelAPIClientMock struct {
	mock.Mock
}

ChannelAPIClientMock is an autogenerated mock type for the ChannelAPIClientMock type

func (*ChannelAPIClientMock) CreateChannel

CreateChannel provides a mock function with given fields: ctx, in, opts

func (*ChannelAPIClientMock) DecrementSubscribers

func (_m *ChannelAPIClientMock) DecrementSubscribers(ctx context.Context, in *channel.SubscribersRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

DecrementSubscribers provides a mock function with given fields: ctx, in, opts

func (*ChannelAPIClientMock) DeleteChannel

DeleteChannel provides a mock function with given fields: ctx, in, opts

func (*ChannelAPIClientMock) GetChannel

GetChannel provides a mock function with given fields: ctx, in, opts

func (*ChannelAPIClientMock) IncrementSubscribers

func (_m *ChannelAPIClientMock) IncrementSubscribers(ctx context.Context, in *channel.SubscribersRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

IncrementSubscribers provides a mock function with given fields: ctx, in, opts

func (*ChannelAPIClientMock) ListChannels

ListChannels provides a mock function with given fields: ctx, in, opts

func (*ChannelAPIClientMock) SearchChannels

SearchChannels provides a mock function with given fields: ctx, in, opts

func (*ChannelAPIClientMock) UpdateChannel

UpdateChannel provides a mock function with given fields: ctx, in, opts

type Cooky

type Cooky struct {
	mock.Mock
}

Cooky is an autogenerated mock type for the Cooky type

func (*Cooky) Decode

func (_m *Cooky) Decode(_a0 string, _a1 string, _a2 interface{}) error

Decode provides a mock function with given fields: _a0, _a1, _a2

func (*Cooky) Encode

func (_m *Cooky) Encode(_a0 string, _a1 interface{}) (string, error)

Encode provides a mock function with given fields: _a0, _a1

type EmailAPIClientMock

type EmailAPIClientMock struct {
	mock.Mock
}

EmailAPIClientMock is an autogenerated mock type for the EmailAPIClientMock type

func (*EmailAPIClientMock) SendEmail

SendEmail provides a mock function with given fields: ctx, in, opts

type FcmClient

type FcmClient struct {
	mock.Mock
}

FcmClient is an autogenerated mock type for the FcmClient type

func (*FcmClient) Send

func (_m *FcmClient) Send(msg *fcm.Message) (*fcm.Response, error)

Send provides a mock function with given fields: msg

func (*FcmClient) SendWithContext

func (_m *FcmClient) SendWithContext(ctx context.Context, msg *fcm.Message) (*fcm.Response, error)

SendWithContext provides a mock function with given fields: ctx, msg

func (*FcmClient) SendWithRetry

func (_m *FcmClient) SendWithRetry(msg *fcm.Message, retryAttempts int) (*fcm.Response, error)

SendWithRetry provides a mock function with given fields: msg, retryAttempts

type FirebaseAuth

type FirebaseAuth struct {
	mock.Mock
}

FirebaseAuth is an autogenerated mock type for the FirebaseAuth type

func (*FirebaseAuth) VerifyIDToken

func (_m *FirebaseAuth) VerifyIDToken(_a0 context.Context, _a1 string) (*auth.Token, error)

VerifyIDToken provides a mock function with given fields: _a0, _a1

type LongrunningClientMock

type LongrunningClientMock struct {
	mock.Mock
}

LongrunningClientMock is an autogenerated mock type for the LongrunningClientMock type

func (*LongrunningClientMock) CreateOperation

CreateOperation provides a mock function with given fields: ctx, in, opts

func (*LongrunningClientMock) DeleteOperation

DeleteOperation provides a mock function with given fields: ctx, in, opts

func (*LongrunningClientMock) GetOperation

GetOperation provides a mock function with given fields: ctx, in, opts

func (*LongrunningClientMock) ListOperations

ListOperations provides a mock function with given fields: ctx, in, opts

func (*LongrunningClientMock) UpdateOperation

UpdateOperation provides a mock function with given fields: ctx, in, opts

type MessagingAPIClientMock

type MessagingAPIClientMock struct {
	mock.Mock
}

MessagingAPIClientMock is an autogenerated mock type for the MessagingAPIClientMock type

func (*MessagingAPIClientMock) BroadCastMessage

BroadCastMessage provides a mock function with given fields: ctx, in, opts

func (*MessagingAPIClientMock) GetNewMessagesCount

GetNewMessagesCount provides a mock function with given fields: ctx, in, opts

func (*MessagingAPIClientMock) ListMessages

ListMessages provides a mock function with given fields: ctx, in, opts

func (*MessagingAPIClientMock) ReadAll

ReadAll provides a mock function with given fields: ctx, in, opts

func (*MessagingAPIClientMock) SendMessage

SendMessage provides a mock function with given fields: ctx, in, opts

type PushAPIClientMock

type PushAPIClientMock struct {
	mock.Mock
}

PushAPIClientMock is an autogenerated mock type for the PushAPIClientMock type

func (*PushAPIClientMock) SendPushMessage

func (_m *PushAPIClientMock) SendPushMessage(ctx context.Context, in *pusher.PushMessage, opts ...grpc.CallOption) (*emptypb.Empty, error)

SendPushMessage provides a mock function with given fields: ctx, in, opts

type SMSAPIClientMock

type SMSAPIClientMock struct {
	mock.Mock
}

SMSAPIClientMock is an autogenerated mock type for the SMSAPIClientMock type

func (*SMSAPIClientMock) SendSMS

func (_m *SMSAPIClientMock) SendSMS(ctx context.Context, in *sms.SendSMSRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

SendSMS provides a mock function with given fields: ctx, in, opts

type SubscriberAPIClientMock

type SubscriberAPIClientMock struct {
	mock.Mock
}

SubscriberAPIClientMock is an autogenerated mock type for the SubscriberAPIClientMock type

func (*SubscriberAPIClientMock) GetSubscriber

GetSubscriber provides a mock function with given fields: ctx, in, opts

func (*SubscriberAPIClientMock) ListSubscribers

ListSubscribers provides a mock function with given fields: ctx, in, opts

func (*SubscriberAPIClientMock) Subscribe

Subscribe provides a mock function with given fields: ctx, in, opts

func (*SubscriberAPIClientMock) Unsubscribe

Unsubscribe provides a mock function with given fields: ctx, in, opts

Jump to

Keyboard shortcuts

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