Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // StatusOK is a missing response status field meaning OK in NeoFS protocol. It // allows to make code more clear instead of passing nil. StatusOK *protostatus.Status // StatusOKErr is an error corresponding to [StatusOK]. It allows to make code // more clear instead of passing nil. StatusOKErr error )
Functions ¶
func NeedVersionInResponse ¶ added in v0.56.0
func NeedVersionInResponse(reqMetaHeader *protosession.RequestMetaHeader) bool
NeedVersionInResponse returns true only if version is not found OR if it is higher that the server's one.
func ToStatus ¶ added in v0.45.0
func ToStatus(err error) *protostatus.Status
ToStatus unwraps the deepest error from err and converts it into the response status.
func VerifyRequestAPIVersion ¶ added in v0.58.0
VerifyRequestAPIVersion checks whether v is correct.
func VerifyRequestValidityTime ¶ added in v0.58.0
func VerifyRequestValidityTime(now time.Time, reqMetaHeader *protosession.RequestMetaHeader) error
VerifyRequestValidityTime checks whether requests time is valid according to current time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.