Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶ added in v0.17.0
type Server interface {
Balance(context.Context, *accounting.BalanceRequest) (*accounting.BalanceResponse, error)
}
Server is an interface of the NeoFS API Accounting service server
func NewExecutionService ¶
func NewExecutionService(exec ServiceExecutor) Server
NewExecutionService wraps ServiceExecutor and returns Accounting Service interface.
func NewResponseService ¶
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)
}
Click to show internal directories.
Click to hide internal directories.