Versions in this module Expand all Collapse all v0 v0.3.1 Jul 14, 2021 v0.3.0 Jun 8, 2021 v0.2.1 Dec 21, 2020 Changes in this version type FieldType + Oneof []*Field v0.1.0 Jan 17, 2019 Changes in this version + type DebugInfo struct + Fset *token.FileSet + Path string + func (di *DebugInfo) Position(pos token.Pos) string + type Enum struct + Name string + func NewEnum(e *ast.TypeSpec) (*Enum, error) + type Field struct + Name string + PBFieldName string + Type *FieldType + func NewField(f *ast.Field) (*Field, error) + type FieldType struct + ArrayType bool + Enum *Enum + Map *Map + Message *Message + Name string + StarExpr bool + type HTTPBinding struct + Params []*HTTPParameter + Path string + Verb string + type HTTPParameter struct + Field *Field + Location string + type LocationError struct + Err string + Path string + Position string + func NewLocationError(err string, path string, pos string) LocationError + func (le LocationError) Error() string + func (le LocationError) Location() string + type Map struct + KeyType *FieldType + ValueType *FieldType + func NewMap(m ast.Expr) (*Map, error) + type Message struct + Fields []*Field + Name string + func NewMessage(m *ast.TypeSpec) (*Message, error) + type Service struct + Methods []*ServiceMethod + Name string + func NewService(s *ast.TypeSpec, info *DebugInfo) (*Service, error) + type ServiceMethod struct + Bindings []*HTTPBinding + Name string + RequestType *FieldType + ResponseType *FieldType + func NewServiceMethod(m *ast.Field, info *DebugInfo) (*ServiceMethod, error) + type Svcdef struct + Enums []*Enum + Messages []*Message + PkgName string + Service *Service + func New(goFiles map[string]io.Reader, protoFiles map[string]io.Reader) (*Svcdef, error) + func NewFromString(def string, gopath []string) (*Svcdef, error)