2020-10-08 11:22:28 +00:00
|
|
|
package netmap
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/nspcc-dev/neofs-api-go/v2/session"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Service interface {
|
|
|
|
LocalNodeInfo(ctx context.Context, request *LocalNodeInfoRequest) (*LocalNodeInfoResponse, error)
|
2021-02-17 16:36:03 +00:00
|
|
|
NetworkInfo(ctx context.Context, request *NetworkInfoRequest) (*NetworkInfoResponse, error)
|
2020-10-08 11:22:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type LocalNodeInfoRequest struct {
|
|
|
|
body *LocalNodeInfoRequestBody
|
|
|
|
|
|
|
|
metaHeader *session.RequestMetaHeader
|
|
|
|
|
|
|
|
verifyHeader *session.RequestVerificationHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
type LocalNodeInfoResponse struct {
|
|
|
|
body *LocalNodeInfoResponseBody
|
|
|
|
|
|
|
|
metaHeader *session.ResponseMetaHeader
|
|
|
|
|
|
|
|
verifyHeader *session.ResponseVerificationHeader
|
|
|
|
}
|
2021-02-17 16:36:03 +00:00
|
|
|
|
|
|
|
// NetworkInfoRequest is a structure of NetworkInfo request.
|
|
|
|
type NetworkInfoRequest struct {
|
|
|
|
body *NetworkInfoRequestBody
|
|
|
|
|
|
|
|
metaHeader *session.RequestMetaHeader
|
|
|
|
|
|
|
|
verifyHeader *session.RequestVerificationHeader
|
|
|
|
}
|
|
|
|
|
|
|
|
// NetworkInfoResponse is a structure of NetworkInfo response.
|
|
|
|
type NetworkInfoResponse struct {
|
|
|
|
body *NetworkInfoResponseBody
|
|
|
|
|
|
|
|
metaHeader *session.ResponseMetaHeader
|
|
|
|
|
|
|
|
verifyHeader *session.ResponseVerificationHeader
|
|
|
|
}
|