kratos: github.com/go-kratos/kratos/pkg/net/rpc/warden/internal/status Index | Files

package status

import "github.com/go-kratos/kratos/pkg/net/rpc/warden/internal/status"

Index

Package Files

status.go

func FromError Uses

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

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

func ToEcode Uses

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

ToEcode convert grpc.status to ecode.Codes

Package status imports 7 packages (graph) and is imported by 2 packages. Updated 2020-05-21. Refresh now. Tools for package owners.