keelgotsrpc

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode added in v0.3.0

func Decode(data interface{}, v interface{}) error

Decode decodes the custom data into the given pointer to a map or struct.

Types

type Error

type Error string

Error type

const (
	ErrorNotFound         Error = "notFound"         //nolint:errname
	ErrorForbidden        Error = "forbidden"        //nolint:errname
	ErrorPermissionDenied Error = "permissionDenied" //nolint:errname
)

Common errors

func NewError

func NewError(e Error) *Error

NewError returns a pointer error

func (*Error) Error

func (e *Error) Error() string

Error interface

func (*Error) Is added in v0.2.0

func (e *Error) Is(err error) bool

Is interface

Jump to

Keyboard shortcuts

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