Back to godoc.org

Package status

v0.3.3
Latest Go to latest

The latest major version is .

Published: Jan 20, 2020 | License: MIT | Module: github.com/bilibili/kratos

Index

func FromError

func FromError(svrErr error) (gst *status.Status)

FromError convert error for service reply and try to convert it to grpc.Status.

func ToEcode

func ToEcode(gst *status.Status) ecode.Codes

ToEcode convert grpc.status to ecode.Codes

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier