services

package
v0.0.0-...-3017044 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingNamespace           = errors.New("missing required parameter: namespace")
	ErrNamespaceNotExists         = errors.New("namespace is not found on the current server")
	ErrInvalidMetadata            = errors.New("bad metadata in request")
	ErrMissingNamespaceInMetadata = errors.New("missing required metadata: x-namespace")
	ErrStreamTimeout              = errors.New("stream timeout: no records received within dynamic threshold seconds")
	ErrKeyNotFound                = status.Error(codes.NotFound, "key not found")
	ErrPutChunkPrecondition       = errors.New("invalid sequence: StartMarker must be sent before sending chunks or calling CommitMarker")
	ErrPutChunkCheckSumMismatch   = errors.New("invalid checksum: checksum mismatch")
	ErrPutChunkAlreadyCommited    = errors.New("put chunk stream already commited")
	ErrClientMaxRetriesExceeded   = errors.New("max retries exceeded")
)

Functions

func ToGRPCError

func ToGRPCError(namespace string, reqID middleware.RequestID, method middleware.Method, err error) error

ToGRPCError Convert business error to gRPC error. Custom types to avoid ordering issue while calling the function.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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