ecode

package
v0.0.0-...-7429660 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success            = 0
	ChannelBroken      = 9
	FailedPrecondition = 100
	Unavailable        = 101
	Canceled           = 102
	DeadlineExceeded   = 103
	ConfigLb           = 104
	BreakerOpen        = 105
	LimitedExceeded    = 106
	UnknownNamespace   = 107
	UnKnown            = 1001
)

Variables

View Source
var (
	ErrClientLB         = errors.New("host not found from upstream")
	ErrUnknownNamespace = errors.New("unknown namespace")
)

Functions

func ConvertErr

func ConvertErr(err error) int

func ConvertHttpStatus

func ConvertHttpStatus(err error) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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