22dad0573d
Get rid of `Option` pattern. Define `Init`, `Dial` and `Close` methods for the corresponding stages of use. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
20 lines
495 B
Go
20 lines
495 B
Go
package client
|
|
|
|
import "github.com/nspcc-dev/neofs-api-go/v2/session"
|
|
|
|
// ResponseMetaInfo groups meta information about any NeoFS API response.
|
|
type ResponseMetaInfo struct {
|
|
key []byte
|
|
}
|
|
|
|
type responseV2 interface {
|
|
GetMetaHeader() *session.ResponseMetaHeader
|
|
GetVerificationHeader() *session.ResponseVerificationHeader
|
|
}
|
|
|
|
// ResponderKey returns responder's public key in a binary format.
|
|
//
|
|
// Result must not be mutated.
|
|
func (x ResponseMetaInfo) ResponderKey() []byte {
|
|
return x.key
|
|
}
|