api

package
v0.0.0-...-9fe1ceb Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Code_name = map[int32]string{
		0: "Unknown",
		1: "Success",
		2: "ParamInvalid",
		3: "DBErr",
		4: "OtherErr",
	}
	Code_value = map[string]int32{
		"Unknown":      0,
		"Success":      1,
		"ParamInvalid": 2,
		"DBErr":        3,
		"OtherErr":     4,
	}
)

Enum value maps for Code.

View Source
var (
	// optional string raw_body = 50101;
	E_RawBody = &file_api_proto_extTypes[0]
	// optional string query = 50102;
	E_Query = &file_api_proto_extTypes[1]
	// optional string header = 50103;
	E_Header = &file_api_proto_extTypes[2]
	// optional string cookie = 50104;
	E_Cookie = &file_api_proto_extTypes[3]
	// optional string body = 50105;
	E_Body = &file_api_proto_extTypes[4]
	// optional string path = 50106;
	E_Path = &file_api_proto_extTypes[5]
	// optional string vd = 50107;
	E_Vd = &file_api_proto_extTypes[6]
	// optional string form = 50108;
	E_Form = &file_api_proto_extTypes[7]
	// optional string go_tag = 51001;
	E_GoTag = &file_api_proto_extTypes[8]
	// optional string js_conv = 50109;
	E_JsConv = &file_api_proto_extTypes[9]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional string get = 50201;
	E_Get = &file_api_proto_extTypes[10]
	// optional string post = 50202;
	E_Post = &file_api_proto_extTypes[11]
	// optional string put = 50203;
	E_Put = &file_api_proto_extTypes[12]
	// optional string delete = 50204;
	E_Delete = &file_api_proto_extTypes[13]
	// optional string patch = 50205;
	E_Patch = &file_api_proto_extTypes[14]
	// optional string options = 50206;
	E_Options = &file_api_proto_extTypes[15]
	// optional string head = 50207;
	E_Head = &file_api_proto_extTypes[16]
	// optional string any = 50208;
	E_Any = &file_api_proto_extTypes[17]
	// optional string gen_path = 50301;
	E_GenPath = &file_api_proto_extTypes[18]
	// optional string api_version = 50302;
	E_ApiVersion = &file_api_proto_extTypes[19]
	// optional string tag = 50303;
	E_Tag = &file_api_proto_extTypes[20]
	// optional string name = 50304;
	E_Name = &file_api_proto_extTypes[21]
	// optional string api_level = 50305;
	E_ApiLevel = &file_api_proto_extTypes[22]
	// optional string serializer = 50306;
	E_Serializer = &file_api_proto_extTypes[23]
	// optional string param = 50307;
	E_Param = &file_api_proto_extTypes[24]
	// optional string baseurl = 50308;
	E_Baseurl = &file_api_proto_extTypes[25]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var (
	// optional int32 http_code = 50401;
	E_HttpCode = &file_api_proto_extTypes[26]
)

Extension fields to descriptorpb.EnumValueOptions.

Functions

This section is empty.

Types

type Code

type Code int32
const (
	Code_Unknown      Code = 0
	Code_Success      Code = 1
	Code_ParamInvalid Code = 2
	Code_DBErr        Code = 3
	Code_OtherErr     Code = 4
)

func (Code) Descriptor

func (Code) Descriptor() protoreflect.EnumDescriptor

func (Code) Enum

func (x Code) Enum() *Code

func (Code) EnumDescriptor deprecated

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

Deprecated: Use Code.Descriptor instead.

func (Code) Number

func (x Code) Number() protoreflect.EnumNumber

func (Code) String

func (x Code) String() string

func (Code) Type

func (Code) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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