Documentation ¶
Index ¶
- Variables
- func NewMockedTestDialFactory() grpc_client.DialFactory
- func SetEmailCallbacks(callbacks *MockEmailServiceCallbacks)
- func SetEventCompletionServiceCallbacks(callbacks *MockEventCompletionCallbacks)
- func SetInvoiceCallbacks(callbacks *MockInvoiceServiceCallbacks)
- func SetOpportunityCallbacks(callbacks *MockOpportunityServiceCallbacks)
- func SetOrganizationCallbacks(callbacks *MockOrganizationServiceCallbacks)
- func SetPhoneNumberCallbacks(callbacks *MockPhoneNumberServiceCallbacks)
- type MockEmailService
- type MockEmailServiceCallbacks
- type MockEventCompletionCallbacks
- type MockEventCompletionService
- type MockInvoiceService
- func (MockInvoiceService) FillInvoice(ctx context.Context, proto *invoicepb.FillInvoiceRequest) (*invoicepb.InvoiceIdResponse, error)
- func (MockInvoiceService) GenerateInvoicePdf(ctx context.Context, proto *invoicepb.GenerateInvoicePdfRequest) (*invoicepb.InvoiceIdResponse, error)
- func (MockInvoiceService) NextPreviewInvoiceForContract(ctx context.Context, proto *invoicepb.NextPreviewInvoiceForContractRequest) (*invoicepb.InvoiceIdResponse, error)
- func (MockInvoiceService) PermanentlyDeleteInitializedInvoice(ctx context.Context, ...) (*invoicepb.InvoiceIdResponse, error)
- func (MockInvoiceService) RequestFillInvoice(ctx context.Context, proto *invoicepb.RequestFillInvoiceRequest) (*invoicepb.InvoiceIdResponse, error)
- type MockInvoiceServiceCallbacks
- type MockOpportunityService
- func (MockOpportunityService) CreateRenewalOpportunity(ctx context.Context, proto *opportunitypb.CreateRenewalOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error)
- func (MockOpportunityService) UpdateOpportunity(ctx context.Context, proto *opportunitypb.UpdateOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error)
- func (MockOpportunityService) UpdateRenewalOpportunity(ctx context.Context, proto *opportunitypb.UpdateRenewalOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error)
- func (MockOpportunityService) UpdateRenewalOpportunityNextCycleDate(ctx context.Context, ...) (*opportunitypb.OpportunityIdGrpcResponse, error)
- type MockOpportunityServiceCallbacks
- type MockOrganizationService
- func (MockOrganizationService) AddParentOrganization(ctx context.Context, proto *organizationpb.AddParentOrganizationGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
- func (MockOrganizationService) LinkPhoneNumberToOrganization(ctx context.Context, ...) (*organizationpb.OrganizationIdGrpcResponse, error)
- func (MockOrganizationService) RefreshArr(ctx context.Context, proto *organizationpb.OrganizationIdGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
- func (MockOrganizationService) RefreshRenewalSummary(ctx context.Context, proto *organizationpb.RefreshRenewalSummaryGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
- func (MockOrganizationService) RemoveParentOrganization(context context.Context, ...) (*organizationpb.OrganizationIdGrpcResponse, error)
- func (MockOrganizationService) UpdateOnboardingStatus(context context.Context, ...) (*organizationpb.OrganizationIdGrpcResponse, error)
- func (MockOrganizationService) UpsertOrganization(ctx context.Context, proto *organizationpb.UpsertOrganizationGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
- type MockOrganizationServiceCallbacks
- type MockPhoneNumberService
- type MockPhoneNumberServiceCallbacks
- type MockedTestDialFactoryImpl
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
}
func (MockEmailService) RequestEmailValidation ¶
func (MockEmailService) RequestEmailValidation(ctx context.Context, proto *emailpb.RequestEmailValidationGrpcRequest) (*emailpb.EmailIdGrpcResponse, error)
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 ¶
func (MockEventCompletionService) NotifyEventProcessed(context context.Context, proto *eventcompletionpb.NotifyEventProcessedRequest) (*emptypb.Empty, error)
type MockInvoiceService ¶
type MockInvoiceService struct {
invoicepb.UnimplementedInvoiceGrpcServiceServer
}
func (MockInvoiceService) FillInvoice ¶
func (MockInvoiceService) FillInvoice(ctx context.Context, proto *invoicepb.FillInvoiceRequest) (*invoicepb.InvoiceIdResponse, error)
func (MockInvoiceService) GenerateInvoicePdf ¶
func (MockInvoiceService) GenerateInvoicePdf(ctx context.Context, proto *invoicepb.GenerateInvoicePdfRequest) (*invoicepb.InvoiceIdResponse, error)
func (MockInvoiceService) NextPreviewInvoiceForContract ¶
func (MockInvoiceService) NextPreviewInvoiceForContract(ctx context.Context, proto *invoicepb.NextPreviewInvoiceForContractRequest) (*invoicepb.InvoiceIdResponse, error)
func (MockInvoiceService) PermanentlyDeleteInitializedInvoice ¶
func (MockInvoiceService) PermanentlyDeleteInitializedInvoice(ctx context.Context, proto *invoicepb.PermanentlyDeleteInitializedInvoiceRequest) (*invoicepb.InvoiceIdResponse, error)
func (MockInvoiceService) RequestFillInvoice ¶
func (MockInvoiceService) RequestFillInvoice(ctx context.Context, proto *invoicepb.RequestFillInvoiceRequest) (*invoicepb.InvoiceIdResponse, error)
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 MockOpportunityService ¶
type MockOpportunityService struct {
opportunitypb.UnimplementedOpportunityGrpcServiceServer
}
func (MockOpportunityService) CreateRenewalOpportunity ¶
func (MockOpportunityService) CreateRenewalOpportunity(ctx context.Context, proto *opportunitypb.CreateRenewalOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error)
func (MockOpportunityService) UpdateOpportunity ¶
func (MockOpportunityService) UpdateOpportunity(ctx context.Context, proto *opportunitypb.UpdateOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error)
func (MockOpportunityService) UpdateRenewalOpportunity ¶
func (MockOpportunityService) UpdateRenewalOpportunity(ctx context.Context, proto *opportunitypb.UpdateRenewalOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error)
func (MockOpportunityService) UpdateRenewalOpportunityNextCycleDate ¶
func (MockOpportunityService) UpdateRenewalOpportunityNextCycleDate(ctx context.Context, proto *opportunitypb.UpdateRenewalOpportunityNextCycleDateGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error)
type MockOpportunityServiceCallbacks ¶
type MockOpportunityServiceCallbacks struct { CreateRenewalOpportunity func(ctx context.Context, proto *opportunitypb.CreateRenewalOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error) UpdateRenewalOpportunity func(ctx context.Context, proto *opportunitypb.UpdateRenewalOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error) UpdateRenewalOpportunityNextCycleDate func(ctx context.Context, proto *opportunitypb.UpdateRenewalOpportunityNextCycleDateGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error) UpdateOpportunity func(ctx context.Context, proto *opportunitypb.UpdateOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error) }
type MockOrganizationService ¶
type MockOrganizationService struct {
organizationpb.UnimplementedOrganizationGrpcServiceServer
}
func (MockOrganizationService) AddParentOrganization ¶
func (MockOrganizationService) AddParentOrganization(ctx context.Context, proto *organizationpb.AddParentOrganizationGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
func (MockOrganizationService) LinkPhoneNumberToOrganization ¶
func (MockOrganizationService) LinkPhoneNumberToOrganization(ctx context.Context, proto *organizationpb.LinkPhoneNumberToOrganizationGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
func (MockOrganizationService) RefreshArr ¶
func (MockOrganizationService) RefreshArr(ctx context.Context, proto *organizationpb.OrganizationIdGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
func (MockOrganizationService) RefreshRenewalSummary ¶
func (MockOrganizationService) RefreshRenewalSummary(ctx context.Context, proto *organizationpb.RefreshRenewalSummaryGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
func (MockOrganizationService) RemoveParentOrganization ¶
func (MockOrganizationService) RemoveParentOrganization(context context.Context, proto *organizationpb.RemoveParentOrganizationGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
func (MockOrganizationService) UpdateOnboardingStatus ¶
func (MockOrganizationService) UpdateOnboardingStatus(context context.Context, proto *organizationpb.UpdateOnboardingStatusGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
func (MockOrganizationService) UpsertOrganization ¶
func (MockOrganizationService) UpsertOrganization(ctx context.Context, proto *organizationpb.UpsertOrganizationGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
type MockOrganizationServiceCallbacks ¶
type MockOrganizationServiceCallbacks struct { CreateOrganization func(ctx context.Context, proto *organizationpb.UpsertOrganizationGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error) AddParent func(ctx context.Context, proto *organizationpb.AddParentOrganizationGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error) RemoveParent func(ctx context.Context, proto *organizationpb.RemoveParentOrganizationGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error) LinkPhoneNumberToOrganization func(ctx context.Context, proto *organizationpb.LinkPhoneNumberToOrganizationGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error) UpdateOnboardingStatus func(ctx context.Context, proto *organizationpb.UpdateOnboardingStatusGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error) RefreshRenewalSummary func(ctx context.Context, proto *organizationpb.RefreshRenewalSummaryGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error) RefreshArr func(ctx context.Context, proto *organizationpb.OrganizationIdGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error) }
type MockPhoneNumberService ¶
type MockPhoneNumberService struct {
phonenumberpb.UnimplementedPhoneNumberGrpcServiceServer
}
func (MockPhoneNumberService) RequestPhoneNumberValidation ¶
func (MockPhoneNumberService) RequestPhoneNumberValidation(ctx context.Context, proto *phonenumberpb.RequestPhoneNumberValidationGrpcRequest) (*phonenumberpb.PhoneNumberIdGrpcResponse, error)
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)
Click to show internal directories.
Click to hide internal directories.