options

package
Version: v0.3.19 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 5 Imported by: 1

README

options

自定义的protobuf option扩展项

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional bool journal = 74400;
	E_Journal = &file_options_proto_extTypes[0]
	// optional string metrics_alias = 74401;
	E_MetricsAlias = &file_options_proto_extTypes[1]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var (
	// optional bluekaki.vv.options.Handler authorization = 74500;
	E_Authorization = &file_options_proto_extTypes[2]
	// optional bluekaki.vv.options.Handler proxy_authorization = 74501;
	E_ProxyAuthorization = &file_options_proto_extTypes[3]
	// optional bluekaki.vv.options.Handler mix_authorization = 74502;
	E_MixAuthorization = &file_options_proto_extTypes[4]
	// optional bluekaki.vv.options.Handler whitelisting = 74503;
	E_Whitelisting = &file_options_proto_extTypes[5]
)

Extension fields to descriptorpb.ServiceOptions.

View Source
var (
	// for string: not empty; numeric: not zero; bytes: not nil; map: not nil
	//
	// optional bool require = 74600;
	E_Require = &file_options_proto_extTypes[6]
	// optional string eq = 74601;
	E_Eq = &file_options_proto_extTypes[7] // equal to
	// optional string ne = 74602;
	E_Ne = &file_options_proto_extTypes[8] // not equal to
	// optional uint32 lt = 74603;
	E_Lt = &file_options_proto_extTypes[9] // less then
	// optional uint32 le = 74604;
	E_Le = &file_options_proto_extTypes[10] // less than or equal to
	// optional uint32 gt = 74605;
	E_Gt = &file_options_proto_extTypes[11] // greater than
	// optional uint32 ge = 74606;
	E_Ge = &file_options_proto_extTypes[12] // greater than or equal to
	// optional uint32 max_cap = 74607;
	E_MaxCap = &file_options_proto_extTypes[13] // capacity by slice/map/bytes
	// optional uint32 min_cap = 74608;
	E_MinCap = &file_options_proto_extTypes[14] // capacity by slice/map/bytes
	// optional bool cst_datetime = 74609;
	E_CstDatetime = &file_options_proto_extTypes[15] // 2006-01-02 15:04:05
	// optional bool cst_minute = 74610;
	E_CstMinute = &file_options_proto_extTypes[16] // 2006-01-02 15:04
	// optional bool cn_mobile = 74611;
	E_CnMobile = &file_options_proto_extTypes[17] // 10000000000
)

Extension fields to descriptorpb.FieldOptions.

View Source
var File_options_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Handler added in v0.2.7

type Handler struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Handler) Descriptor deprecated added in v0.2.7

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

Deprecated: Use Handler.ProtoReflect.Descriptor instead.

func (*Handler) GetName added in v0.2.7

func (x *Handler) GetName() string

func (*Handler) ProtoMessage added in v0.2.7

func (*Handler) ProtoMessage()

func (*Handler) ProtoReflect added in v0.2.7

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

func (*Handler) Reset added in v0.2.7

func (x *Handler) Reset()

func (*Handler) String added in v0.2.7

func (x *Handler) String() string

Source Files

Jump to

Keyboard shortcuts

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