Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureNonNilResponse ¶
EnsureNonNilResponse creates an appropriate response struct if it is nil.
Types ¶
type RequestMessage ¶
type RequestMessage interface {
GetMetaHeader() *session.RequestMetaHeader
}
type ResponseMessage ¶
type ResponseMessage interface {
GetMetaHeader() *session.ResponseMetaHeader
SetMetaHeader(*session.ResponseMetaHeader)
}
ResponseMessage is an interface of FrostFS response message.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewUnarySignService ¶
func NewUnarySignService(key *ecdsa.PrivateKey) *Service
func (*Service) SignResponse ¶
SignResponse response with private key via signature.SignServiceMessage. The signature error affects the result depending on the protocol version:
- if status return is supported, panics since we cannot return the failed status, because it will not be signed.
- otherwise, returns error in order to transport it directly.
func (*Service) VerifyRequest ¶
func (s *Service) VerifyRequest(ctx context.Context, req RequestMessage) error
Click to show internal directories.
Click to hide internal directories.