mocks

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommsClient

type CommsClient struct {
	Calls                            map[string][]CommsClientCallerInfo
	MockSendAccountMemberInviteEmail func(ctx context.Context, in *comms.AccountMemberInviteEmailInput, opts ...grpc.CallOption) (*comms.Void, error)
	MockSendPasswordResetEmail       func(ctx context.Context, in *comms.PasswordResetEmailInput, opts ...grpc.CallOption) (*comms.Void, error)
	MockSendProjectMemberInviteEmail func(ctx context.Context, in *comms.ProjectMemberInviteEmailInput, opts ...grpc.CallOption) (*comms.Void, error)
	MockSendVerificationEmail        func(ctx context.Context, in *comms.VerificationEmailInput, opts ...grpc.CallOption) (*comms.Void, error)
	MockSendWelcomeEmail             func(ctx context.Context, in *comms.WelcomeEmailInput, opts ...grpc.CallOption) (*comms.Void, error)
	MockSendWaitingEmail             func(ctx context.Context, in *comms.WaitingEmailInput, opts ...grpc.CallOption) (*comms.Void, error)
}

func NewCommsClient

func NewCommsClient() *CommsClient

func (*CommsClient) SendAccountMemberInviteEmail

func (cMock *CommsClient) SendAccountMemberInviteEmail(ctx context.Context, in *comms.AccountMemberInviteEmailInput, opts ...grpc.CallOption) (*comms.Void, error)

func (*CommsClient) SendPasswordResetEmail

func (cMock *CommsClient) SendPasswordResetEmail(ctx context.Context, in *comms.PasswordResetEmailInput, opts ...grpc.CallOption) (*comms.Void, error)

func (*CommsClient) SendProjectMemberInviteEmail

func (cMock *CommsClient) SendProjectMemberInviteEmail(ctx context.Context, in *comms.ProjectMemberInviteEmailInput, opts ...grpc.CallOption) (*comms.Void, error)

func (*CommsClient) SendVerificationEmail

func (cMock *CommsClient) SendVerificationEmail(ctx context.Context, in *comms.VerificationEmailInput, opts ...grpc.CallOption) (*comms.Void, error)

func (*CommsClient) SendWaitingEmail

func (cMock *CommsClient) SendWaitingEmail(ctx context.Context, in *comms.WaitingEmailInput, opts ...grpc.CallOption) (*comms.Void, error)

func (*CommsClient) SendWelcomeEmail

func (cMock *CommsClient) SendWelcomeEmail(ctx context.Context, in *comms.WelcomeEmailInput, opts ...grpc.CallOption) (*comms.Void, error)

type CommsClientCallerInfo

type CommsClientCallerInfo struct {
	Args []any
}

type CommsServer

type CommsServer struct {
	Calls                            map[string][]CommsServerCallerInfo
	MockSendAccountMemberInviteEmail func(ka context.Context, kb *comms.AccountMemberInviteEmailInput) (*comms.Void, error)
	MockSendPasswordResetEmail       func(kc context.Context, kd *comms.PasswordResetEmailInput) (*comms.Void, error)
	MockSendProjectMemberInviteEmail func(ke context.Context, kf *comms.ProjectMemberInviteEmailInput) (*comms.Void, error)
	MockSendVerificationEmail        func(kg context.Context, kh *comms.VerificationEmailInput) (*comms.Void, error)
	MockSendWelcomeEmail             func(ki context.Context, kj *comms.WelcomeEmailInput) (*comms.Void, error)
	MockSendWaitingEmail             func(ki context.Context, kj *comms.WaitingEmailInput) (*comms.Void, error)
}

func NewCommsServer

func NewCommsServer() *CommsServer

func (*CommsServer) SendAccountMemberInviteEmail

func (cMock *CommsServer) SendAccountMemberInviteEmail(ka context.Context, kb *comms.AccountMemberInviteEmailInput) (*comms.Void, error)

func (*CommsServer) SendPasswordResetEmail

func (cMock *CommsServer) SendPasswordResetEmail(kc context.Context, kd *comms.PasswordResetEmailInput) (*comms.Void, error)

func (*CommsServer) SendProjectMemberInviteEmail

func (cMock *CommsServer) SendProjectMemberInviteEmail(ke context.Context, kf *comms.ProjectMemberInviteEmailInput) (*comms.Void, error)

func (*CommsServer) SendVerificationEmail

func (cMock *CommsServer) SendVerificationEmail(kg context.Context, kh *comms.VerificationEmailInput) (*comms.Void, error)

func (*CommsServer) SendWaitingEmail

func (cMock *CommsServer) SendWaitingEmail(ki context.Context, kj *comms.WaitingEmailInput) (*comms.Void, error)

func (*CommsServer) SendWelcomeEmail

func (cMock *CommsServer) SendWelcomeEmail(ki context.Context, kj *comms.WelcomeEmailInput) (*comms.Void, error)

type CommsServerCallerInfo

type CommsServerCallerInfo struct {
	Args []any
}

Jump to

Keyboard shortcuts

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