errorv1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 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",
		1: "CONTENT_MISSING",
		2: "CONTENT_ERROR",
	}
	ERROR_value = map[string]int32{
		"UNKNOWN":         0,
		"CONTENT_MISSING": 1,
		"CONTENT_ERROR":   2,
	}
)

Enum value maps for ERROR.

View Source
var ERROR_http_code = map[string]int{

	"UNKNOWN":         500,
	"CONTENT_MISSING": 400,
	"CONTENT_ERROR":   400,
}
View Source
var File_api_ping_service_v1_errors_ping_error_v1_proto protoreflect.FileDescriptor

Functions

func DefaultErrorContentError

func DefaultErrorContentError() *errors.Error

func DefaultErrorContentMissing

func DefaultErrorContentMissing() *errors.Error

func DefaultErrorUnknown

func DefaultErrorUnknown() *errors.Error

func ErrorContentError

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

func ErrorContentMissing

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

func ErrorUnknown

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

func IsContentError

func IsContentError(err error) bool

func IsContentMissing

func IsContentMissing(err error) bool

func IsUnknown

func IsUnknown(err error) bool

Types

type ERROR

type ERROR int32

ERROR .

const (
	ERROR_UNKNOWN         ERROR = 0
	ERROR_CONTENT_MISSING ERROR = 1
	ERROR_CONTENT_ERROR   ERROR = 2
)

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