service

package
v0.0.0-...-47cfc89 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertEntityInvestorToModel

func ConvertEntityInvestorToModel(entity repository.InvestorWithWalletEntity) model.Investor

ConvertEntityInvestorToModel returns model Investor for a given repository InvestorWithWalletEntity

func ConvertEntityInvestorsToModel

func ConvertEntityInvestorsToModel(entity []repository.InvestorWithWalletEntity) []model.Investor

ConvertEntityInvestorsToModel returns list of model Investor for a given list of repository InvestorWithWalletEntity

func ConvertEntityInvoiceToModel

func ConvertEntityInvoiceToModel(invoice *repository.InvoiceEntity) *model.Invoice

ConvertEntityInvoiceToModel returns model Invoice for a given repository InvoiceEntity

func ConvertEntityIssuerToModel

func ConvertEntityIssuerToModel(issuer *repository.IssuerWithWalletEntity) *model.Issuer

ConvertEntityIssuerToModel returns model Issuer for a given repository IssuerWithWalletEntity

func ConvertEntityWalletToModel

func ConvertEntityWalletToModel(entity *repository.WalletEntity) *model.Wallet

ConvertEntityWalletToModel returns model Wallet for a given repository WalletEntity

func ConvertModelInvestorToEntity

func ConvertModelInvestorToEntity(investor *model.Investor) *repository.InvestorEntity

ConvertModelInvestorToEntity returns repository InvestorEntity for a given Investor model

func ConvertModelInvoiceToEntity

func ConvertModelInvoiceToEntity(invoice *model.Invoice) *repository.InvoiceEntity

ConvertModelInvoiceToEntity returns repository InvoiceEntity for a given Invoice model

func ConvertModelIssuerToEntity

func ConvertModelIssuerToEntity(issuer *model.Issuer) *repository.IssuerEntity

ConvertModelIssuerToEntity returns repository IssuerEntity for a given Issuer model

func ConvertModelWalletToEntity

func ConvertModelWalletToEntity(refID uuid.UUID, wallet *model.Wallet) *repository.WalletEntity

ConvertModelWalletToEntity returns repository WalletEntity for a given Wallet model

Types

type Bid

type Bid interface {
	Place(ctx context.Context, invoiceID uuid.UUID, investorID uuid.UUID) error
}

Bid is a interface that contains the methods for the bidding services

type Investor

type Investor interface {
	Create(ctx context.Context, investor *model.Investor) (*model.Investor, error)
	Get(ctx context.Context, id uuid.UUID) (*model.Investor, error)
	GetAll(ctx context.Context, paging *model.Paging) ([]model.Investor, error)
}

Investor is a interface that contains the methods for the investor services

type Invoice

type Invoice interface {
	Create(ctx context.Context, invoice *model.Invoice) (*model.Invoice, error)
	Get(ctx context.Context, id uuid.UUID) (*model.Invoice, error)
	Approve(ctx context.Context, id uuid.UUID) error
}

Invoice is a interface that contains the methods for the invoice services

type Issuer

type Issuer interface {
	Create(ctx context.Context, issuer *model.Issuer) (*model.Issuer, error)
	Get(ctx context.Context, id uuid.UUID) (*model.Issuer, error)
}

Issuer is a interface that contains the methods for the issuer services

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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