Documentation ¶
Index ¶
- Variables
- type CustomPattern
- func (*CustomPattern) Descriptor() ([]byte, []int)deprecated
- func (x *CustomPattern) GetMethod() string
- func (x *CustomPattern) GetPath() string
- func (*CustomPattern) ProtoMessage()
- func (x *CustomPattern) ProtoReflect() protoreflect.Message
- func (x *CustomPattern) Reset()
- func (x *CustomPattern) String() string
- type FIELD_BIND
- type Http
- func (*Http) Descriptor() ([]byte, []int)deprecated
- func (x *Http) GetCustom() *CustomPattern
- func (x *Http) GetDelete() string
- func (x *Http) GetGet() string
- func (x *Http) GetHandler() string
- func (x *Http) GetPatch() string
- func (m *Http) GetPattern() isHttp_Pattern
- func (x *Http) GetPost() string
- func (x *Http) GetPut() string
- func (x *Http) GetTimeout() int64
- func (x *Http) GetUse() []string
- func (*Http) ProtoMessage()
- func (x *Http) ProtoReflect() protoreflect.Message
- func (x *Http) Reset()
- func (x *Http) String() string
- type Http_Custom
- type Http_Delete
- type Http_Get
- type Http_Patch
- type Http_Post
- type Http_Put
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FIELD_BIND_name = map[int32]string{ 0: "FROM_DEFAULT", 1: "FROM_QUERY", 2: "FROM_PARAMS", 3: "FROM_HEADER", 4: "FROM_CONTEXT", } FIELD_BIND_value = map[string]int32{ "FROM_DEFAULT": 0, "FROM_QUERY": 1, "FROM_PARAMS": 2, "FROM_HEADER": 3, "FROM_CONTEXT": 4, } )
Enum value maps for FIELD_BIND.
View Source
var ( // optional string server = 2143202; E_Server = &file_gapi_annotation_proto_extTypes[1] // optional string default_handler = 2143203; E_DefaultHandler = &file_gapi_annotation_proto_extTypes[2] // optional int64 default_timeout = 2143204; E_DefaultTimeout = &file_gapi_annotation_proto_extTypes[3] // optional string path_prefix = 2143205; E_PathPrefix = &file_gapi_annotation_proto_extTypes[4] // repeated string use = 2143206; E_Use = &file_gapi_annotation_proto_extTypes[5] )
Extension fields to descriptorpb.ServiceOptions.
View Source
var ( // optional gapi.FIELD_BIND bind = 4143202; E_Bind = &file_gapi_annotation_proto_extTypes[6] // optional string alias = 4143203; E_Alias = &file_gapi_annotation_proto_extTypes[7] // optional bool omit_empty = 4143204; E_OmitEmpty = &file_gapi_annotation_proto_extTypes[8] // optional bool raw_data = 4143205; E_RawData = &file_gapi_annotation_proto_extTypes[9] // optional bool embed = 4143206; E_Embed = &file_gapi_annotation_proto_extTypes[10] )
Extension fields to descriptorpb.FieldOptions.
View Source
var (
// optional gapi.Http http = 1143202;
E_Http = &file_gapi_annotation_proto_extTypes[0]
)
Extension fields to descriptorpb.MethodOptions.
View Source
var File_gapi_annotation_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CustomPattern ¶
type CustomPattern struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*CustomPattern) Descriptor
deprecated
func (*CustomPattern) Descriptor() ([]byte, []int)
Deprecated: Use CustomPattern.ProtoReflect.Descriptor instead.
func (*CustomPattern) GetMethod ¶
func (x *CustomPattern) GetMethod() string
func (*CustomPattern) GetPath ¶
func (x *CustomPattern) GetPath() string
func (*CustomPattern) ProtoMessage ¶
func (*CustomPattern) ProtoMessage()
func (*CustomPattern) ProtoReflect ¶
func (x *CustomPattern) ProtoReflect() protoreflect.Message
func (*CustomPattern) Reset ¶
func (x *CustomPattern) Reset()
func (*CustomPattern) String ¶
func (x *CustomPattern) String() string
type FIELD_BIND ¶
type FIELD_BIND int32
const ( FIELD_BIND_FROM_DEFAULT FIELD_BIND = 0 // determined by handler FIELD_BIND_FROM_QUERY FIELD_BIND = 1 FIELD_BIND_FROM_PARAMS FIELD_BIND = 2 FIELD_BIND_FROM_HEADER FIELD_BIND = 3 FIELD_BIND_FROM_CONTEXT FIELD_BIND = 4 )
func (FIELD_BIND) Descriptor ¶
func (FIELD_BIND) Descriptor() protoreflect.EnumDescriptor
func (FIELD_BIND) Enum ¶
func (x FIELD_BIND) Enum() *FIELD_BIND
func (FIELD_BIND) EnumDescriptor
deprecated
func (FIELD_BIND) EnumDescriptor() ([]byte, []int)
Deprecated: Use FIELD_BIND.Descriptor instead.
func (FIELD_BIND) Number ¶
func (x FIELD_BIND) Number() protoreflect.EnumNumber
func (FIELD_BIND) String ¶
func (x FIELD_BIND) String() string
func (FIELD_BIND) Type ¶
func (FIELD_BIND) Type() protoreflect.EnumType
type Http ¶
type Http struct { // Types that are assignable to Pattern: // // *Http_Get // *Http_Post // *Http_Put // *Http_Delete // *Http_Patch // *Http_Custom Pattern isHttp_Pattern `protobuf_oneof:"pattern"` Use []string `protobuf:"bytes,7,rep,name=use,proto3" json:"use,omitempty"` Handler string `protobuf:"bytes,8,opt,name=handler,proto3" json:"handler,omitempty"` Timeout int64 `protobuf:"varint,9,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*Http) Descriptor
deprecated
func (*Http) GetCustom ¶
func (x *Http) GetCustom() *CustomPattern
func (*Http) GetHandler ¶
func (*Http) GetPattern ¶
func (m *Http) GetPattern() isHttp_Pattern
func (*Http) GetTimeout ¶
func (*Http) ProtoMessage ¶
func (*Http) ProtoMessage()
func (*Http) ProtoReflect ¶
func (x *Http) ProtoReflect() protoreflect.Message
type Http_Custom ¶
type Http_Custom struct {
Custom *CustomPattern `protobuf:"bytes,6,opt,name=custom,proto3,oneof"`
}
type Http_Delete ¶
type Http_Delete struct {
Delete string `protobuf:"bytes,4,opt,name=delete,proto3,oneof"`
}
type Http_Patch ¶
type Http_Patch struct {
Patch string `protobuf:"bytes,5,opt,name=patch,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.