status

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 3 Imported by: 7

Documentation

Overview

Package status provides a gRPC Status struct compatible with the Improbable gRPC-web trailers and errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	Code     codes.Code
	Message  string
	Trailers metadata.MD
}

Status is a gRPC-web Status.

func FromError

func FromError(err error) *Status

FromError constructs a Status from an error.

func (Status) Error

func (s Status) Error() string

Error returns a string representation of the status

Jump to

Keyboard shortcuts

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