Documentation ¶
Index ¶
- type Binding
- type Enum
- type Field
- type File
- func (f *File) GetOutputFileName() string
- func (f *File) GetPackageName() string
- func (f *File) LoadEnums(enums []*descriptor.EnumDescriptorProto, outers []string)
- func (f *File) LoadMessages(msgs []*descriptor.DescriptorProto, outers []string)
- func (f *File) LoadServices(g *Generator, services []*descriptor.ServiceDescriptorProto) error
- type Generator
- type GoPackage
- type HTTPMethod
- type Message
- type Method
- type NameGetter
- type Path
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enum ¶
type Enum struct { *descriptor.EnumDescriptorProto FQMN string }
func NewEnum ¶
func NewEnum(enum *descriptor.EnumDescriptorProto) *Enum
type Field ¶
type Field struct {
*descriptor.FieldDescriptorProto
}
func NewField ¶
func NewField(field *descriptor.FieldDescriptorProto) *Field
type File ¶
type File struct { *descriptor.FileDescriptorProto GoPkg *GoPackage Messages []*Message Enums []*Enum Services []*Service }
func NewFile ¶
func NewFile(file *descriptor.FileDescriptorProto) *File
func (*File) GetOutputFileName ¶
func (*File) GetPackageName ¶
func (*File) LoadEnums ¶
func (f *File) LoadEnums(enums []*descriptor.EnumDescriptorProto, outers []string)
func (*File) LoadMessages ¶
func (f *File) LoadMessages(msgs []*descriptor.DescriptorProto, outers []string)
func (*File) LoadServices ¶
func (f *File) LoadServices(g *Generator, services []*descriptor.ServiceDescriptorProto) error
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) Generate ¶
func (g *Generator) Generate() ([]*plugin.CodeGeneratorResponse_File, error)
func (*Generator) LookupEnum ¶
func (*Generator) LookupMessage ¶
type HTTPMethod ¶
type HTTPMethod int
const ( GET HTTPMethod = iota POST PUT PATCH DELETE )
func (HTTPMethod) String ¶
func (i HTTPMethod) String() string
type Message ¶
type Message struct { *descriptor.DescriptorProto FQMN string File *File Fields []*Field }
func NewMessage ¶
func NewMessage(msg *descriptor.DescriptorProto) *Message
func (*Message) LookupField ¶
type Method ¶
type Method struct { *descriptor.MethodDescriptorProto RequestType *Message ResponseType *Message Bindings []*Binding }
func NewMethod ¶
func NewMethod(method *descriptor.MethodDescriptorProto) *Method
type NameGetter ¶
type NameGetter interface {
GetName() string
}
type Service ¶
type Service struct { *descriptor.ServiceDescriptorProto Methods []*Method }
func NewService ¶
func NewService(svc *descriptor.ServiceDescriptorProto) *Service
Click to show internal directories.
Click to hide internal directories.