Documentation ¶
Index ¶
- Variables
- func DefaultErrorContentError() *errors.Error
- func DefaultErrorContentMissing() *errors.Error
- func DefaultErrorUnknown() *errors.Error
- func ErrorContentError(format string, args ...interface{}) *errors.Error
- func ErrorContentMissing(format string, args ...interface{}) *errors.Error
- func ErrorUnknown(format string, args ...interface{}) *errors.Error
- func IsContentError(err error) bool
- func IsContentMissing(err error) bool
- func IsUnknown(err error) bool
- type ERROR
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 DefaultErrorUnknown ¶
func ErrorContentError ¶
func ErrorContentMissing ¶
func ErrorUnknown ¶
func IsContentError ¶
func IsContentMissing ¶
Types ¶
type ERROR ¶
type ERROR int32
ERROR .
func (ERROR) Descriptor ¶
func (ERROR) Descriptor() protoreflect.EnumDescriptor
func (ERROR) EnumDescriptor
deprecated
func (ERROR) Number ¶
func (x ERROR) Number() protoreflect.EnumNumber
func (ERROR) Type ¶
func (ERROR) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.