Documentation
¶
Index ¶
- func CompileFieldPath(desc protoreflect.MessageDescriptor, selector string) ([]protoreflect.FieldDescriptor, error)
- func FindField(desc protoreflect.MessageDescriptor, name string) protoreflect.FieldDescriptor
- func MethodKey(serviceGoName, methodGoName string) string
- type HTTPBinding
- type MessageFactory
- type MethodSpec
- type PathParam
- type ServiceSpec
- type UnaryInvoker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileFieldPath ¶
func CompileFieldPath(desc protoreflect.MessageDescriptor, selector string) ([]protoreflect.FieldDescriptor, error)
func FindField ¶
func FindField(desc protoreflect.MessageDescriptor, name string) protoreflect.FieldDescriptor
Types ¶
type HTTPBinding ¶
type HTTPBinding struct {
Method string
Path string
PathParams []PathParam
Body string
BodyFieldPath []protoreflect.FieldDescriptor
ResponseBody string
ResponseBodyFieldPath []protoreflect.FieldDescriptor
}
type MessageFactory ¶
type MethodSpec ¶
type MethodSpec struct {
ServiceName string
ServiceGoName string
Name string
GoName string
Procedure string
ConnectPath string
HTTPBindings []HTTPBinding
RequestFactory MessageFactory
ResponseFactory MessageFactory
UnaryInvoker UnaryInvoker
ClientStreaming bool
ServerStreaming bool
}
func (MethodSpec) Key ¶
func (m MethodSpec) Key() string
type PathParam ¶
type PathParam struct {
Name string
Field string
FieldPath []protoreflect.FieldDescriptor
Template string
TemplateParts []string
Names []string
}
type ServiceSpec ¶
type ServiceSpec struct {
Name string
GoName string
ConnectPath string
Methods []MethodSpec
}
func CompileServiceSpec ¶
func CompileServiceSpec(spec ServiceSpec) (ServiceSpec, error)
Click to show internal directories.
Click to hide internal directories.