accounting

package
v0.0.0-...-79ba347 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	Balance(context.Context, *accounting.BalanceRequest) (*accounting.BalanceResponse, error)
}

Server is an interface of the FrostFS API Accounting service server.

func NewExecutionService

func NewExecutionService(exec ServiceExecutor) Server

NewExecutionService wraps ServiceExecutor and returns Accounting Service interface.

func NewResponseService

func NewResponseService(accSvc Server, respSvc *response.Service) Server

NewResponseService returns accounting service instance that passes internal service call to response service.

func NewSignService

func NewSignService(key *ecdsa.PrivateKey, svc Server) Server

type ServiceExecutor

type ServiceExecutor interface {
	Balance(context.Context, *accounting.BalanceRequestBody) (*accounting.BalanceResponseBody, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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