mocked_grpc

package
v0.0.0-...-2c6ffd1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmailCallbacks = &MockEmailServiceCallbacks{}
View Source
var InvoiceCallbacks = &MockInvoiceServiceCallbacks{}
View Source
var PhoneNumberCallbacks = &MockPhoneNumberServiceCallbacks{}

Functions

func NewMockedTestDialFactory

func NewMockedTestDialFactory() grpc_client.DialFactory

func SetEmailCallbacks

func SetEmailCallbacks(callbacks *MockEmailServiceCallbacks)

func SetEventCompletionServiceCallbacks

func SetEventCompletionServiceCallbacks(callbacks *MockEventCompletionCallbacks)

func SetInvoiceCallbacks

func SetInvoiceCallbacks(callbacks *MockInvoiceServiceCallbacks)

func SetOpportunityCallbacks

func SetOpportunityCallbacks(callbacks *MockOpportunityServiceCallbacks)

func SetOrganizationCallbacks

func SetOrganizationCallbacks(callbacks *MockOrganizationServiceCallbacks)

func SetPhoneNumberCallbacks

func SetPhoneNumberCallbacks(callbacks *MockPhoneNumberServiceCallbacks)

Types

type MockEmailService

type MockEmailService struct {
	emailpb.UnimplementedEmailGrpcServiceServer
}

type MockEmailServiceCallbacks

type MockEmailServiceCallbacks struct {
	RequestEmailValidation func(ctx context.Context, proto *emailpb.RequestEmailValidationGrpcRequest) (*emailpb.EmailIdGrpcResponse, error)
}

type MockEventCompletionCallbacks

type MockEventCompletionCallbacks struct {
	NotifyEventProcessed func(ctx context.Context, proto *eventcompletionpb.NotifyEventProcessedRequest) (*emptypb.Empty, error)
}

type MockEventCompletionService

type MockEventCompletionService struct {
	eventcompletionpb.UnimplementedEventCompletionGrpcServiceServer
}

func (MockEventCompletionService) NotifyEventProcessed

type MockInvoiceServiceCallbacks

type MockInvoiceServiceCallbacks struct {
	NextPreviewInvoiceForContract       func(ctx context.Context, proto *invoicepb.NextPreviewInvoiceForContractRequest) (*invoicepb.InvoiceIdResponse, error)
	GenerateInvoicePdf                  func(ctx context.Context, proto *invoicepb.GenerateInvoicePdfRequest) (*invoicepb.InvoiceIdResponse, error)
	RequestFillInvoice                  func(ctx context.Context, proto *invoicepb.RequestFillInvoiceRequest) (*invoicepb.InvoiceIdResponse, error)
	FillInvoice                         func(ctx context.Context, proto *invoicepb.FillInvoiceRequest) (*invoicepb.InvoiceIdResponse, error)
	PermanentlyDeleteInitializedInvoice func(ctx context.Context, proto *invoicepb.PermanentlyDeleteInitializedInvoiceRequest) (*invoicepb.InvoiceIdResponse, error)
}

type MockOrganizationService

type MockOrganizationService struct {
	organizationpb.UnimplementedOrganizationGrpcServiceServer
}

type MockPhoneNumberServiceCallbacks

type MockPhoneNumberServiceCallbacks struct {
	RequestPhoneNumberValidation func(ctx context.Context, proto *phonenumberpb.RequestPhoneNumberValidationGrpcRequest) (*phonenumberpb.PhoneNumberIdGrpcResponse, error)
}

type MockedTestDialFactoryImpl

type MockedTestDialFactoryImpl struct {
	// contains filtered or unexported fields
}

func (MockedTestDialFactoryImpl) Close

func (dfi MockedTestDialFactoryImpl) Close(conn *grpc.ClientConn)

func (MockedTestDialFactoryImpl) GetEventsProcessingPlatformConn

func (dfi MockedTestDialFactoryImpl) GetEventsProcessingPlatformConn() (*grpc.ClientConn, error)

Jump to

Keyboard shortcuts

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