Documentation ¶
Index ¶
- func NewTestDialFactory() grpc_client.DialFactory
- func SetContractCallbacks(callbacks *MockContractServiceCallbacks)
- func SetEventStoreServiceCallbacks(callbacks *MockEventStoreServiceCallbacks)
- func SetInvoiceCallbacks(callbacks *MockInvoiceServiceCallbacks)
- func SetOpportunityCallbacks(callbacks *MockOpportunityServiceCallbacks)
- func SetOrganizationCallbacks(callbacks *MockOrganizationServiceCallbacks)
- func SetServiceLineItemCallbacks(callbacks *MockServiceLineItemServiceCallbacks)
- type MockContractService
- type MockContractServiceCallbacks
- type MockEventStoreService
- type MockEventStoreServiceCallbacks
- type MockInvoiceService
- func (MockInvoiceService) NewInvoiceForContract(context context.Context, proto *invoicepb.NewInvoiceForContractRequest) (*invoicepb.InvoiceIdResponse, error)
- func (MockInvoiceService) NextPreviewInvoiceForContract(context context.Context, proto *invoicepb.NextPreviewInvoiceForContractRequest) (*invoicepb.InvoiceIdResponse, error)
- func (MockInvoiceService) VoidInvoice(context context.Context, proto *invoicepb.VoidInvoiceRequest) (*invoicepb.InvoiceIdResponse, error)
- type MockInvoiceServiceCallbacks
- type MockOpportunityService
- func (MockOpportunityService) CreateRenewalOpportunity(context context.Context, ...) (*opportunitypb.OpportunityIdGrpcResponse, error)
- func (MockOpportunityService) UpdateOpportunity(context context.Context, proto *opportunitypb.UpdateOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error)
- func (MockOpportunityService) UpdateRenewalOpportunity(context context.Context, ...) (*opportunitypb.OpportunityIdGrpcResponse, error)
- type MockOpportunityServiceCallbacks
- type MockOrganizationService
- func (MockOrganizationService) AddParentOrganization(context context.Context, ...) (*organizationpb.OrganizationIdGrpcResponse, error)
- func (MockOrganizationService) CreateBillingProfile(context context.Context, proto *organizationpb.CreateBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error)
- func (MockOrganizationService) LinkEmailToBillingProfile(context context.Context, ...) (*organizationpb.BillingProfileIdGrpcResponse, error)
- func (MockOrganizationService) LinkLocationToBillingProfile(context context.Context, ...) (*organizationpb.BillingProfileIdGrpcResponse, error)
- func (MockOrganizationService) RefreshArr(context context.Context, proto *organizationpb.OrganizationIdGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
- func (MockOrganizationService) RefreshRenewalSummary(context context.Context, ...) (*organizationpb.OrganizationIdGrpcResponse, error)
- func (MockOrganizationService) RemoveParentOrganization(context context.Context, ...) (*organizationpb.OrganizationIdGrpcResponse, error)
- func (MockOrganizationService) UnlinkEmailFromBillingProfile(context context.Context, ...) (*organizationpb.BillingProfileIdGrpcResponse, error)
- func (MockOrganizationService) UnlinkLocationFromBillingProfile(context context.Context, ...) (*organizationpb.BillingProfileIdGrpcResponse, error)
- func (MockOrganizationService) UpdateBillingProfile(context context.Context, proto *organizationpb.UpdateBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error)
- func (MockOrganizationService) UpdateOnboardingStatus(context context.Context, ...) (*organizationpb.OrganizationIdGrpcResponse, error)
- func (MockOrganizationService) UpdateOrganizationOwner(context context.Context, ...) (*organizationpb.OrganizationIdGrpcResponse, error)
- type MockOrganizationServiceCallbacks
- type MockServiceLineItemService
- func (MockServiceLineItemService) CloseServiceLineItem(context context.Context, ...) (*servicelineitempb.ServiceLineItemIdGrpcResponse, error)
- func (MockServiceLineItemService) CreateServiceLineItem(context context.Context, ...) (*servicelineitempb.ServiceLineItemIdGrpcResponse, error)
- func (MockServiceLineItemService) DeleteServiceLineItem(context context.Context, ...) (*servicelineitempb.ServiceLineItemIdGrpcResponse, error)
- func (MockServiceLineItemService) UpdateServiceLineItem(context context.Context, ...) (*servicelineitempb.ServiceLineItemIdGrpcResponse, error)
- type MockServiceLineItemServiceCallbacks
- type TestDialFactoryImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestDialFactory ¶
func NewTestDialFactory() grpc_client.DialFactory
func SetContractCallbacks ¶
func SetContractCallbacks(callbacks *MockContractServiceCallbacks)
func SetEventStoreServiceCallbacks ¶
func SetEventStoreServiceCallbacks(callbacks *MockEventStoreServiceCallbacks)
func SetInvoiceCallbacks ¶
func SetInvoiceCallbacks(callbacks *MockInvoiceServiceCallbacks)
func SetOpportunityCallbacks ¶
func SetOpportunityCallbacks(callbacks *MockOpportunityServiceCallbacks)
func SetOrganizationCallbacks ¶
func SetOrganizationCallbacks(callbacks *MockOrganizationServiceCallbacks)
func SetServiceLineItemCallbacks ¶
func SetServiceLineItemCallbacks(callbacks *MockServiceLineItemServiceCallbacks)
Types ¶
type MockContractService ¶
type MockContractService struct {
contractpb.UnimplementedContractGrpcServiceServer
}
func (MockContractService) RolloutRenewalOpportunityOnExpiration ¶
func (MockContractService) RolloutRenewalOpportunityOnExpiration(context context.Context, proto *contractpb.RolloutRenewalOpportunityOnExpirationGrpcRequest) (*contractpb.ContractIdGrpcResponse, error)
func (MockContractService) SoftDeleteContract ¶
func (MockContractService) SoftDeleteContract(context context.Context, proto *contractpb.SoftDeleteContractGrpcRequest) (*emptypb.Empty, error)
type MockContractServiceCallbacks ¶
type MockContractServiceCallbacks struct { SoftDeleteContract func(context.Context, *contractpb.SoftDeleteContractGrpcRequest) (*emptypb.Empty, error) RolloutRenewalOpportunityOnExpiration func(context.Context, *contractpb.RolloutRenewalOpportunityOnExpirationGrpcRequest) (*contractpb.ContractIdGrpcResponse, error) }
type MockEventStoreService ¶
type MockEventStoreService struct {
eventstorepb.UnimplementedEventStoreGrpcServiceServer
}
func (MockEventStoreService) StoreEvent ¶
func (MockEventStoreService) StoreEvent(context context.Context, proto *eventstorepb.StoreEventGrpcRequest) (*eventstorepb.StoreEventGrpcResponse, error)
type MockEventStoreServiceCallbacks ¶
type MockEventStoreServiceCallbacks struct {
StoreEvent func(context.Context, *eventstorepb.StoreEventGrpcRequest) (*eventstorepb.StoreEventGrpcResponse, error)
}
type MockInvoiceService ¶
type MockInvoiceService struct {
invoicepb.UnimplementedInvoiceGrpcServiceServer
}
func (MockInvoiceService) NewInvoiceForContract ¶
func (MockInvoiceService) NewInvoiceForContract(context context.Context, proto *invoicepb.NewInvoiceForContractRequest) (*invoicepb.InvoiceIdResponse, error)
func (MockInvoiceService) NextPreviewInvoiceForContract ¶
func (MockInvoiceService) NextPreviewInvoiceForContract(context context.Context, proto *invoicepb.NextPreviewInvoiceForContractRequest) (*invoicepb.InvoiceIdResponse, error)
func (MockInvoiceService) VoidInvoice ¶
func (MockInvoiceService) VoidInvoice(context context.Context, proto *invoicepb.VoidInvoiceRequest) (*invoicepb.InvoiceIdResponse, error)
type MockInvoiceServiceCallbacks ¶
type MockInvoiceServiceCallbacks struct { NextPreviewInvoiceForContract func(context.Context, *invoicepb.NextPreviewInvoiceForContractRequest) (*invoicepb.InvoiceIdResponse, error) NewInvoiceForContract func(context.Context, *invoicepb.NewInvoiceForContractRequest) (*invoicepb.InvoiceIdResponse, error) VoidInvoice func(context.Context, *invoicepb.VoidInvoiceRequest) (*invoicepb.InvoiceIdResponse, error) }
type MockOpportunityService ¶
type MockOpportunityService struct {
opportunitypb.UnimplementedOpportunityGrpcServiceServer
}
func (MockOpportunityService) CreateRenewalOpportunity ¶
func (MockOpportunityService) CreateRenewalOpportunity(context context.Context, proto *opportunitypb.CreateRenewalOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error)
func (MockOpportunityService) UpdateOpportunity ¶
func (MockOpportunityService) UpdateOpportunity(context context.Context, proto *opportunitypb.UpdateOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error)
func (MockOpportunityService) UpdateRenewalOpportunity ¶
func (MockOpportunityService) UpdateRenewalOpportunity(context context.Context, proto *opportunitypb.UpdateRenewalOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error)
type MockOpportunityServiceCallbacks ¶
type MockOpportunityServiceCallbacks struct { UpdateOpportunity func(context.Context, *opportunitypb.UpdateOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error) UpdateRenewalOpportunity func(context.Context, *opportunitypb.UpdateRenewalOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error) CreateRenewalOpportunity func(context.Context, *opportunitypb.CreateRenewalOpportunityGrpcRequest) (*opportunitypb.OpportunityIdGrpcResponse, error) }
type MockOrganizationService ¶
type MockOrganizationService struct {
organizationpb.UnimplementedOrganizationGrpcServiceServer
}
func (MockOrganizationService) AddParentOrganization ¶
func (MockOrganizationService) AddParentOrganization(context context.Context, proto *organizationpb.AddParentOrganizationGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
func (MockOrganizationService) CreateBillingProfile ¶
func (MockOrganizationService) CreateBillingProfile(context context.Context, proto *organizationpb.CreateBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error)
func (MockOrganizationService) LinkEmailToBillingProfile ¶
func (MockOrganizationService) LinkEmailToBillingProfile(context context.Context, proto *organizationpb.LinkEmailToBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error)
func (MockOrganizationService) LinkLocationToBillingProfile ¶
func (MockOrganizationService) LinkLocationToBillingProfile(context context.Context, proto *organizationpb.LinkLocationToBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error)
func (MockOrganizationService) RefreshArr ¶
func (MockOrganizationService) RefreshArr(context context.Context, proto *organizationpb.OrganizationIdGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
func (MockOrganizationService) RefreshRenewalSummary ¶
func (MockOrganizationService) RefreshRenewalSummary(context 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) UnlinkEmailFromBillingProfile ¶
func (MockOrganizationService) UnlinkEmailFromBillingProfile(context context.Context, proto *organizationpb.UnlinkEmailFromBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error)
func (MockOrganizationService) UnlinkLocationFromBillingProfile ¶
func (MockOrganizationService) UnlinkLocationFromBillingProfile(context context.Context, proto *organizationpb.UnlinkLocationFromBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error)
func (MockOrganizationService) UpdateBillingProfile ¶
func (MockOrganizationService) UpdateBillingProfile(context context.Context, proto *organizationpb.UpdateBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error)
func (MockOrganizationService) UpdateOnboardingStatus ¶
func (MockOrganizationService) UpdateOnboardingStatus(context context.Context, proto *organizationpb.UpdateOnboardingStatusGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
func (MockOrganizationService) UpdateOrganizationOwner ¶
func (MockOrganizationService) UpdateOrganizationOwner(context context.Context, proto *organizationpb.UpdateOrganizationOwnerGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error)
type MockOrganizationServiceCallbacks ¶
type MockOrganizationServiceCallbacks struct { AddParent func(context.Context, *organizationpb.AddParentOrganizationGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error) RemoveParent func(context.Context, *organizationpb.RemoveParentOrganizationGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error) RefreshArr func(ctx context.Context, proto *organizationpb.OrganizationIdGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error) RefreshRenewalSummary func(ctx context.Context, proto *organizationpb.RefreshRenewalSummaryGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error) UpdateOnboardingStatus func(ctx context.Context, proto *organizationpb.UpdateOnboardingStatusGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error) UpdateOrganizationOwner func(ctx context.Context, proto *organizationpb.UpdateOrganizationOwnerGrpcRequest) (*organizationpb.OrganizationIdGrpcResponse, error) CreateBillingProfile func(ctx context.Context, proto *organizationpb.CreateBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error) UpdateBillingProfile func(ctx context.Context, proto *organizationpb.UpdateBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error) LinkEmailToBillingProfile func(ctx context.Context, proto *organizationpb.LinkEmailToBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error) UnlinkEmailFromBillingProfile func(ctx context.Context, proto *organizationpb.UnlinkEmailFromBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error) LinkLocationToBillingProfile func(ctx context.Context, proto *organizationpb.LinkLocationToBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error) UnlinkLocationFromBillingProfile func(ctx context.Context, proto *organizationpb.UnlinkLocationFromBillingProfileGrpcRequest) (*organizationpb.BillingProfileIdGrpcResponse, error) }
type MockServiceLineItemService ¶
type MockServiceLineItemService struct {
servicelineitempb.UnimplementedServiceLineItemGrpcServiceServer
}
func (MockServiceLineItemService) CloseServiceLineItem ¶
func (MockServiceLineItemService) CloseServiceLineItem(context context.Context, proto *servicelineitempb.CloseServiceLineItemGrpcRequest) (*servicelineitempb.ServiceLineItemIdGrpcResponse, error)
func (MockServiceLineItemService) CreateServiceLineItem ¶
func (MockServiceLineItemService) CreateServiceLineItem(context context.Context, proto *servicelineitempb.CreateServiceLineItemGrpcRequest) (*servicelineitempb.ServiceLineItemIdGrpcResponse, error)
func (MockServiceLineItemService) DeleteServiceLineItem ¶
func (MockServiceLineItemService) DeleteServiceLineItem(context context.Context, proto *servicelineitempb.DeleteServiceLineItemGrpcRequest) (*servicelineitempb.ServiceLineItemIdGrpcResponse, error)
func (MockServiceLineItemService) UpdateServiceLineItem ¶
func (MockServiceLineItemService) UpdateServiceLineItem(context context.Context, proto *servicelineitempb.UpdateServiceLineItemGrpcRequest) (*servicelineitempb.ServiceLineItemIdGrpcResponse, error)
type MockServiceLineItemServiceCallbacks ¶
type MockServiceLineItemServiceCallbacks struct { CreateServiceLineItem func(context.Context, *servicelineitempb.CreateServiceLineItemGrpcRequest) (*servicelineitempb.ServiceLineItemIdGrpcResponse, error) UpdateServiceLineItem func(context.Context, *servicelineitempb.UpdateServiceLineItemGrpcRequest) (*servicelineitempb.ServiceLineItemIdGrpcResponse, error) DeleteServiceLineItem func(context.Context, *servicelineitempb.DeleteServiceLineItemGrpcRequest) (*servicelineitempb.ServiceLineItemIdGrpcResponse, error) CloseServiceLineItem func(context.Context, *servicelineitempb.CloseServiceLineItemGrpcRequest) (*servicelineitempb.ServiceLineItemIdGrpcResponse, error) }
type TestDialFactoryImpl ¶
type TestDialFactoryImpl struct {
// contains filtered or unexported fields
}
func (TestDialFactoryImpl) Close ¶
func (dfi TestDialFactoryImpl) Close(conn *grpc.ClientConn)
func (TestDialFactoryImpl) GetEventsProcessingPlatformConn ¶
func (dfi TestDialFactoryImpl) GetEventsProcessingPlatformConn() (*grpc.ClientConn, error)
Click to show internal directories.
Click to hide internal directories.