test

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Test_name = map[int32]string{
		0: "NotFound",
		1: "Unknown",
	}
	Test_value = map[string]int32{
		"NotFound": 0,
		"Unknown":  1,
	}
)

Enum value maps for Test.

View Source
var File_errors_test_test_proto protoreflect.FileDescriptor

Functions

func ErrorNotfound

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

func ErrorUnknown

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

func IsNotfound

func IsNotfound(err error) bool

func IsUnknown

func IsUnknown(err error) bool

Types

type Test

type Test int32
const (
	// NotFound 找不到
	Test_NotFound Test = 0
	// Unknown 未知
	Test_Unknown Test = 1
)

func (Test) Descriptor

func (Test) Descriptor() protoreflect.EnumDescriptor

func (Test) Enum

func (x Test) Enum() *Test

func (Test) EnumDescriptor deprecated

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

Deprecated: Use Test.Descriptor instead.

func (Test) Number

func (x Test) Number() protoreflect.EnumNumber

func (Test) String

func (x Test) String() string

func (Test) Type

func (Test) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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