Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutionService ¶
func NewExecutionService(exec ServiceExecutor) accounting.Service
NewExecutionService wraps ServiceExecutor and returns Accounting Service interface.
func NewResponseService ¶
func NewResponseService(accSvc accounting.Service, respSvc *response.Service) accounting.Service
NewResponseService returns accounting service instance that passes internal service call to response service.
func NewSignService ¶
func NewSignService(key *ecdsa.PrivateKey, svc accounting.Service) accounting.Service
Types ¶
type ServiceExecutor ¶
type ServiceExecutor interface {
Balance(context.Context, *accounting.BalanceRequestBody) (*accounting.BalanceResponseBody, error)
}
Click to show internal directories.
Click to hide internal directories.