app

package
v0.0.0-...-e2d33fb Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 (*Implementation) CreateInvoice

func (*Implementation) GetDescription

func (i *Implementation) GetDescription() *grpc.ServiceDesc

func (*Implementation) ListInvoices

func (*Implementation) UpdateInvoice

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)
}

Jump to

Keyboard shortcuts

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