errorv1

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ERROR_name = map[int32]string{
		0: "UNKNOWN",
	}
	ERROR_value = map[string]int32{
		"UNKNOWN": 0,
	}
)

Enum value maps for ERROR.

View Source
var ERROR_http_code = map[string]int{

	"UNKNOWN": 500,
}
View Source
var File_api_testdata_service_v1_errors_testdata_error_v1_proto protoreflect.FileDescriptor

Functions

func DefaultErrorUnknown

func DefaultErrorUnknown() *errors.Error

func ErrorUnknown

func ErrorUnknown(format string, args ...interface{}) *errors.Error

func IsUnknown

func IsUnknown(err error) bool

Types

type ERROR

type ERROR int32

ERROR .

const (
	ERROR_UNKNOWN ERROR = 0
)

func (ERROR) Descriptor

func (ERROR) Descriptor() protoreflect.EnumDescriptor

func (ERROR) Enum

func (x ERROR) Enum() *ERROR

func (ERROR) EnumDescriptor deprecated

func (ERROR) EnumDescriptor() ([]byte, []int)

Deprecated: Use ERROR.Descriptor instead.

func (ERROR) HTTPCode

func (x ERROR) HTTPCode() int

func (ERROR) Number

func (x ERROR) Number() protoreflect.EnumNumber

func (ERROR) String

func (x ERROR) String() string

func (ERROR) Type

func (ERROR) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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