store

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//UnknownErr default sentinel error for storage layer
	UnknownErr = StorageErr{/* contains filtered or unexported fields */}
	//ConflictErr can used for contraint violations
	ConflictErr = StorageErr{/* contains filtered or unexported fields */}
	//NoRowsErr can be used to represent not found/no result
	NoRowsErr = StorageErr{/* contains filtered or unexported fields */}
)

Functions

This section is empty.

Types

type StorageErr

type StorageErr struct {
	// contains filtered or unexported fields
}

StorageErr implements error interface. Used for storage layer. Consumers can check for this error type to inspect storage errors.

func (StorageErr) Error

func (e StorageErr) Error() string

func (StorageErr) GRPCStatus

func (e StorageErr) GRPCStatus() *status.Status

GRPCStatus this is used by gateway interceptor to return appropriate http status code and message

func (StorageErr) Is

func (e StorageErr) Is(err error) bool

func (StorageErr) Unwrap

func (e StorageErr) Unwrap() error

func (StorageErr) WithErr

func (e StorageErr) WithErr(err error, name string) StorageErr

WithErr convenience function to override sentinel errors

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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