errors

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrResponse

type ErrResponse struct {
	Status     int        `json:"-"`
	GRPCStatus codes.Code `json:"-"`
	Errors     []Error    `json:"errors"`
}

func ParseError

func ParseError(err error) *ErrResponse

func (*ErrResponse) ToStatus

func (r *ErrResponse) ToStatus() *status.Status

type Error

type Error struct {
	Code   string `json:"code"`
	Detail string `json:"detail"`
}

Jump to

Keyboard shortcuts

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