Documentation ¶
Index ¶
- type Implementation
- func (i *Implementation) CheckInvoice(ctx context.Context, req *desc.CheckInvoiceRequest) (*desc.CheckInvoiceResponse, error)
- func (i *Implementation) CreateInvoice(ctx context.Context, req *desc.CreateInvoiceRequest) (*desc.CreateInvoiceResponse, error)
- func (i *Implementation) GetDescription() *grpc.ServiceDesc
- func (i *Implementation) ListInvoices(ctx context.Context, req *desc.ListInvoicesRequest) (*desc.ListInvoicesResponse, error)
- func (i *Implementation) UpdateInvoice(ctx context.Context, req *desc.UpdateInvoiceRequest) (*desc.UpdateInvoiceResponse, error)
- type InvoicesService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Implementation ¶
type Implementation struct { desc.UnimplementedInvoicesServiceServer // contains filtered or unexported fields }
func New ¶
func New(invoicesService InvoicesService) *Implementation
func (*Implementation) CheckInvoice ¶
func (i *Implementation) CheckInvoice(ctx context.Context, req *desc.CheckInvoiceRequest) (*desc.CheckInvoiceResponse, error)
func (*Implementation) CreateInvoice ¶
func (i *Implementation) CreateInvoice(ctx context.Context, req *desc.CreateInvoiceRequest) (*desc.CreateInvoiceResponse, error)
func (*Implementation) GetDescription ¶
func (i *Implementation) GetDescription() *grpc.ServiceDesc
func (*Implementation) ListInvoices ¶
func (i *Implementation) ListInvoices(ctx context.Context, req *desc.ListInvoicesRequest) (*desc.ListInvoicesResponse, error)
func (*Implementation) UpdateInvoice ¶
func (i *Implementation) UpdateInvoice(ctx context.Context, req *desc.UpdateInvoiceRequest) (*desc.UpdateInvoiceResponse, error)
type InvoicesService ¶
type InvoicesService interface { CreateInvoice(ctx context.Context, input *invoicesservice.CreateInvoiceInput) (*models.Invoice, error) CheckInvoice(ctx context.Context, invoiceID string) (*models.Invoice, error) UpdateInvoice(ctx context.Context, input *invoicesservice.UpdateInvoiceInput) (*models.Invoice, error) ListInvoices(ctx context.Context, reqFilter *desc.ListInvoicesRequest_Filter) ([]*models.Invoice, error) }
Click to show internal directories.
Click to hide internal directories.