forked from TrueCloudLab/frostfs-api-go
55a6509e8f
Define interfaces that reflect service (Accounting, Container, Session) declarations in the API. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
27 lines
488 B
Go
27 lines
488 B
Go
package accounting
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/nspcc-dev/neofs-api-go/v2/session"
|
|
)
|
|
|
|
type Service interface {
|
|
Balance(context.Context, *BalanceRequest) (*BalanceResponse, error)
|
|
}
|
|
|
|
type BalanceRequest struct {
|
|
body *BalanceRequestBody
|
|
|
|
metaHeader *session.RequestMetaHeader
|
|
|
|
verifyHeader *session.RequestVerificationHeader
|
|
}
|
|
|
|
type BalanceResponse struct {
|
|
body *BalanceResponseBody
|
|
|
|
metaHeader *session.ResponseMetaHeader
|
|
|
|
verifyHeader *session.ResponseVerificationHeader
|
|
}
|