util

package
v0.45.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

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 ToRequestSignatureVerificationError added in v0.45.0

func ToRequestSignatureVerificationError(cause error) error

ToRequestSignatureVerificationError constructs status error describing request signature verification failure with the given cause.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL