status

package
v0.0.0-...-01d4da0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ClientClosed is not-standard http status code,
	// which defined by nginx.
	// https://httpstatus.in/499/
	ClientClosed = 499
)

Variables

This section is empty.

Functions

func FromGRPCCode

func FromGRPCCode(code codes.Code) int

func ToGRPCCode

func ToGRPCCode(code int) codes.Code

Types

type Converter

type Converter interface {
	ToGRPCCode(code int) codes.Code
	FromGRPCCode(code codes.Code) int
}
var DefaultConverter Converter = statusConverter{}

Jump to

Keyboard shortcuts

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