api

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 js_conv = 50109;
	E_JsConv = &file_api_proto_extTypes[8]
	// optional api.FieldRules vt = 50110;
	E_Vt = &file_api_proto_extTypes[9]
	// 50131~50160 used to extend field option by hz
	//
	// optional string form_compatible = 50131;
	E_FormCompatible = &file_api_proto_extTypes[10]
	// optional string js_conv_compatible = 50132;
	E_JsConvCompatible = &file_api_proto_extTypes[11]
	// optional string file_name_compatible = 50133;
	E_FileNameCompatible = &file_api_proto_extTypes[12]
	// optional string none_compatible = 50134;
	E_NoneCompatible = &file_api_proto_extTypes[13]
	// optional api.FieldRules vt_compatible = 50135;
	E_VtCompatible = &file_api_proto_extTypes[14]
	// optional string go_tag = 51001;
	E_GoTag = &file_api_proto_extTypes[15]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional string get = 50201;
	E_Get = &file_api_proto_extTypes[16]
	// optional string post = 50202;
	E_Post = &file_api_proto_extTypes[17]
	// optional string put = 50203;
	E_Put = &file_api_proto_extTypes[18]
	// optional string delete = 50204;
	E_Delete = &file_api_proto_extTypes[19]
	// optional string patch = 50205;
	E_Patch = &file_api_proto_extTypes[20]
	// optional string options = 50206;
	E_Options = &file_api_proto_extTypes[21]
	// optional string head = 50207;
	E_Head = &file_api_proto_extTypes[22]
	// optional string any = 50208;
	E_Any = &file_api_proto_extTypes[23]
	// optional string gen_path = 50301;
	E_GenPath = &file_api_proto_extTypes[24] // The path specified by the user when the client code is generated, with a higher priority than api_version
	// optional string api_version = 50302;
	E_ApiVersion = &file_api_proto_extTypes[25] // Specify the value of the :version variable in path when the client code is generated
	// optional string tag = 50303;
	E_Tag = &file_api_proto_extTypes[26] // rpc tag, can be multiple, separated by commas
	// optional string name = 50304;
	E_Name = &file_api_proto_extTypes[27] // Name of rpc
	// optional string api_level = 50305;
	E_ApiLevel = &file_api_proto_extTypes[28] // Interface Level
	// optional string serializer = 50306;
	E_Serializer = &file_api_proto_extTypes[29] // Serialization method
	// optional string param = 50307;
	E_Param = &file_api_proto_extTypes[30] // Whether client requests take public parameters
	// optional string baseurl = 50308;
	E_Baseurl = &file_api_proto_extTypes[31] // Baseurl used in ttnet routing
	// optional string handler_path = 50309;
	E_HandlerPath = &file_api_proto_extTypes[32] // handler_path specifies the path to generate the method
)

Extension fields to descriptorpb.MethodOptions.

View Source
var (
	// optional api.FieldRules msg_vt = 50111;
	E_MsgVt = &file_api_proto_extTypes[34]
	// optional api.FieldRules msg_vt_compatible = 50831;
	E_MsgVtCompatible = &file_api_proto_extTypes[35]
)

Extension fields to descriptorpb.MessageOptions.

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

Extension fields to descriptorpb.EnumValueOptions.

Functions

This section is empty.

Types

type FieldRules

type FieldRules struct {
	Const       *string     `protobuf:"bytes,1,opt,name=const" json:"const,omitempty"`
	Lt          *string     `protobuf:"bytes,2,opt,name=lt" json:"lt,omitempty"`
	Le          *string     `protobuf:"bytes,3,opt,name=le" json:"le,omitempty"`
	Gt          *string     `protobuf:"bytes,4,opt,name=gt" json:"gt,omitempty"`
	Ge          *string     `protobuf:"bytes,5,opt,name=ge" json:"ge,omitempty"`
	In          []string    `protobuf:"bytes,6,rep,name=in" json:"in,omitempty"`
	NotIn       []string    `protobuf:"bytes,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"`
	Len         *string     `protobuf:"bytes,8,opt,name=len" json:"len,omitempty"`
	MinSize     *string     `protobuf:"bytes,9,opt,name=min_size,json=minSize" json:"min_size,omitempty"`
	MaxSize     *string     `protobuf:"bytes,10,opt,name=max_size,json=maxSize" json:"max_size,omitempty"`
	Pattern     *string     `protobuf:"bytes,11,opt,name=pattern" json:"pattern,omitempty"`
	Prefix      *string     `protobuf:"bytes,12,opt,name=prefix" json:"prefix,omitempty"`
	Suffix      *string     `protobuf:"bytes,13,opt,name=suffix" json:"suffix,omitempty"`
	Contains    *string     `protobuf:"bytes,14,opt,name=contains" json:"contains,omitempty"`
	NotContains *string     `protobuf:"bytes,15,opt,name=not_contains,json=notContains" json:"not_contains,omitempty"`
	DefinedOnly *string     `protobuf:"bytes,16,opt,name=defined_only,json=definedOnly" json:"defined_only,omitempty"`
	NoSparse    *string     `protobuf:"bytes,17,opt,name=no_sparse,json=noSparse" json:"no_sparse,omitempty"`
	Key         *FieldRules `protobuf:"bytes,18,opt,name=key" json:"key,omitempty"`
	Value       *FieldRules `protobuf:"bytes,19,opt,name=value" json:"value,omitempty"`
	Elem        *FieldRules `protobuf:"bytes,20,opt,name=elem" json:"elem,omitempty"`
	Skip        *string     `protobuf:"bytes,21,opt,name=skip" json:"skip,omitempty"`
	Required    *string     `protobuf:"bytes,22,opt,name=required" json:"required,omitempty"`
	NotNil      *string     `protobuf:"bytes,23,opt,name=not_nil,json=notNil" json:"not_nil,omitempty"`
	Assert      *string     `protobuf:"bytes,24,opt,name=assert" json:"assert,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldRules) Descriptor deprecated

func (*FieldRules) Descriptor() ([]byte, []int)

Deprecated: Use FieldRules.ProtoReflect.Descriptor instead.

func (*FieldRules) GetAssert

func (x *FieldRules) GetAssert() string

func (*FieldRules) GetConst

func (x *FieldRules) GetConst() string

func (*FieldRules) GetContains

func (x *FieldRules) GetContains() string

func (*FieldRules) GetDefinedOnly

func (x *FieldRules) GetDefinedOnly() string

func (*FieldRules) GetElem

func (x *FieldRules) GetElem() *FieldRules

func (*FieldRules) GetGe

func (x *FieldRules) GetGe() string

func (*FieldRules) GetGt

func (x *FieldRules) GetGt() string

func (*FieldRules) GetIn

func (x *FieldRules) GetIn() []string

func (*FieldRules) GetKey

func (x *FieldRules) GetKey() *FieldRules

func (*FieldRules) GetLe

func (x *FieldRules) GetLe() string

func (*FieldRules) GetLen

func (x *FieldRules) GetLen() string

func (*FieldRules) GetLt

func (x *FieldRules) GetLt() string

func (*FieldRules) GetMaxSize

func (x *FieldRules) GetMaxSize() string

func (*FieldRules) GetMinSize

func (x *FieldRules) GetMinSize() string

func (*FieldRules) GetNoSparse

func (x *FieldRules) GetNoSparse() string

func (*FieldRules) GetNotContains

func (x *FieldRules) GetNotContains() string

func (*FieldRules) GetNotIn

func (x *FieldRules) GetNotIn() []string

func (*FieldRules) GetNotNil

func (x *FieldRules) GetNotNil() string

func (*FieldRules) GetPattern

func (x *FieldRules) GetPattern() string

func (*FieldRules) GetPrefix

func (x *FieldRules) GetPrefix() string

func (*FieldRules) GetRequired

func (x *FieldRules) GetRequired() string

func (*FieldRules) GetSkip

func (x *FieldRules) GetSkip() string

func (*FieldRules) GetSuffix

func (x *FieldRules) GetSuffix() string

func (*FieldRules) GetValue

func (x *FieldRules) GetValue() *FieldRules

func (*FieldRules) ProtoMessage

func (*FieldRules) ProtoMessage()

func (*FieldRules) ProtoReflect

func (x *FieldRules) ProtoReflect() protoreflect.Message

func (*FieldRules) Reset

func (x *FieldRules) Reset()

func (*FieldRules) String

func (x *FieldRules) String() string

Jump to

Keyboard shortcuts

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