simple

package
v0.0.0-...-71fdcac Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SimpleErr_name = map[int32]string{
		0: "NoError",
		1: "DispatchError",
		2: "UnmarshalFailed",
		3: "MarshalFailed",
		4: "UnknownLang",
	}
	SimpleErr_value = map[string]int32{
		"NoError":         0,
		"DispatchError":   1,
		"UnmarshalFailed": 2,
		"MarshalFailed":   3,
		"UnknownLang":     4,
	}
)

Enum value maps for SimpleErr.

View Source
var File_simple_v1_simple_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SimpleErr

type SimpleErr int32

The first four values of any error enum are to be as shown below.

const (
	SimpleErr_NoError         SimpleErr = 0 // required
	SimpleErr_DispatchError   SimpleErr = 1 // required
	SimpleErr_UnmarshalFailed SimpleErr = 2 // required
	SimpleErr_MarshalFailed   SimpleErr = 3 // required
	SimpleErr_UnknownLang     SimpleErr = 4
)

func (SimpleErr) Descriptor

func (SimpleErr) Descriptor() protoreflect.EnumDescriptor

func (SimpleErr) Enum

func (x SimpleErr) Enum() *SimpleErr

func (SimpleErr) EnumDescriptor deprecated

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

Deprecated: Use SimpleErr.Descriptor instead.

func (SimpleErr) Number

func (x SimpleErr) Number() protoreflect.EnumNumber

func (SimpleErr) String

func (x SimpleErr) String() string

func (SimpleErr) Type

Jump to

Keyboard shortcuts

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