Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
type Binding struct { Method *Method Index int RpcMethod string RpcPath string Service string HttpMethod string HttpPath string RawBody string HttpParams []string Middlewares []string ExcludeGlobalMiddlewares []string RequestType *Message ResponseType *Message Stream bool Websocket bool WebsocketProxy bool AdditionalBinding bool }
type Descriptor ¶
type Descriptor struct {
// contains filtered or unexported fields
}
func NewDescriptor ¶
func NewDescriptor() *Descriptor
func (*Descriptor) LoadFromPlugin ¶
func (d *Descriptor) LoadFromPlugin(gen *protogen.Plugin) error
func (*Descriptor) ReserveGoPackageAlias ¶
func (d *Descriptor) ReserveGoPackageAlias(alias, pkgpath string) error
type Enum ¶
type Enum struct { *descriptorpb.EnumDescriptorProto File *File Outers []string Index int }
type Field ¶
type Field struct { *descriptorpb.FieldDescriptorProto Message *Message FieldMessage *Message }
type File ¶
type File struct { *descriptorpb.FileDescriptorProto GeneratedFilenamePrefix string GoPkg GoPackage Messages []*Message Enums []*Enum Services []*Service }
type Message ¶
type Message struct { *descriptorpb.DescriptorProto File *File Fields []*Field Outers []string Index int }
type Method ¶
type Method struct { *descriptorpb.MethodDescriptorProto Service *Service RequestType *Message ResponseType *Message Name string IsWebsocket bool IsWebsocketProxy bool Bindings []*Binding }
type ResponseFile ¶
type ResponseFile struct { *pluginpb.CodeGeneratorResponse_File GoPkg GoPackage Rewrite bool }
Click to show internal directories.
Click to hide internal directories.