Versions in this module Expand all Collapse all v1 v1.3.2 May 18, 2017 v1.3.1 May 4, 2017 v1.3.0 Apr 18, 2017 v1.2.0 Apr 12, 2017 v1.1.0 Mar 2, 2017 v1.0.4 Apr 21, 2018 v1.0.3 Apr 21, 2018 v1.0.2 Apr 21, 2018 v1.0.1 Apr 21, 2018 v1.0.0 Apr 21, 2018 Changes in this version + var DefaultMappings = TypeMappings + type Alias struct + Src scanner.Type + Type Type + Underlying Type + func NewAlias(typ, underlying Type) *Alias + func (a *Alias) SetSource(t scanner.Type) + func (a *Alias) Source() scanner.Type + func (a Alias) IsNullable() bool + func (a Alias) String() string + type Basic struct + Name string + Src scanner.Type + func NewBasic(name string) *Basic + func (b *Basic) IsNullable() bool + func (b *Basic) SetSource(t scanner.Type) + func (b *Basic) Source() scanner.Type + func (b Basic) String() string + type Decorator func(*Package, *Message, *Field) + func (d Decorator) Run(p *Package, m *Message, f *Field) + type Decorators []Decorator + func CastToBasicType(basic string) Decorators + func NewDecorators(fns ...Decorator) Decorators + func (ds Decorators) Run(p *Package, m *Message, f *Field) + type Enum struct + Docs []string + Name string + Options Options + Values []*EnumValue + type EnumValue struct + Docs []string + Name string + Options Options + Value uint + type Field struct + Docs []string + Name string + Options Options + Pos int + Repeated bool + Type Type + type Generator struct + func NewGenerator(basePath string) *Generator + func (g *Generator) Generate(pkg *Package) error + type LiteralValue struct + func NewLiteralValue(val string) LiteralValue + func (v LiteralValue) String() string + type Map struct + Key Type + Src scanner.Type + Value Type + func NewMap(k, v Type) *Map + func (m *Map) IsNullable() bool + func (m *Map) SetSource(t scanner.Type) + func (m *Map) Source() scanner.Type + func (m Map) String() string + type Message struct + Docs []string + Fields []*Field + Name string + Options Options + Reserved []uint + func (m *Message) Reserve(pos uint) + type Named struct + Generated bool + Name string + Package string + Src scanner.Type + func NewGeneratedNamed(pkg, name string) *Named + func NewNamed(pkg, name string) *Named + func (n *Named) IsNullable() bool + func (n *Named) SetSource(t scanner.Type) + func (n *Named) Source() scanner.Type + func (n Named) String() string + type Option struct + Name string + Value OptionValue + type OptionValue interface + type Options map[string]OptionValue + func (o Options) Sorted() []*Option + type Package struct + Enums []*Enum + Imports []string + Messages []*Message + Name string + Options Options + Path string + RPCs []*RPC + func (p *Package) Import(typ *ProtoType) + func (p *Package) ImportFromPath(path string) + func (p *Package) ServiceName() string + type ProtoType struct + Basic bool + Decorators Decorators + GoImport string + Import string + Name string + Package string + Warn string + func (pt *ProtoType) Decorate(p *Package, m *Message, f *Field) + func (t *ProtoType) Type() Type + type RPC struct + Docs []string + HasCtx bool + HasError bool + Input Type + IsVariadic bool + Method string + Name string + Options Options + Output Type + Recv string + type StringValue struct + func NewStringValue(val string) StringValue + func (v StringValue) String() string + type Transformer struct + func NewTransformer() *Transformer + func (t *Transformer) IsEnum(pkg, name string) bool + func (t *Transformer) IsStruct(pkg, name string) bool + func (t *Transformer) SetEnumSet(ts TypeSet) + func (t *Transformer) SetMappings(m TypeMappings) + func (t *Transformer) SetStructSet(ts TypeSet) + func (t *Transformer) Transform(p *scanner.Package) *Package + type Type interface + IsNullable func() bool + SetSource func(scanner.Type) + Source func() scanner.Type + type TypeMappings map[string]*ProtoType + func (t TypeMappings) ToGoOutPath() string + type TypeSet map[string]map[string]struct + func NewTypeSet() TypeSet + func (ts TypeSet) Add(pkg, name string) bool + func (ts TypeSet) Contains(pkg, name string) bool + func (ts TypeSet) Len() (c int)