Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindProtoFiles ¶
Types ¶
type CSGenerator ¶
type CSGenerator struct { SkipSerializer bool Property bool Serializable bool // contains filtered or unexported fields }
func NewCSGenerator ¶
func NewCSGenerator() *CSGenerator
func (*CSGenerator) Generate ¶
func (g *CSGenerator) Generate(files []string) ([]*GenerateFile, error)
func (*CSGenerator) GenerateAndOutput ¶
func (g *CSGenerator) GenerateAndOutput(files []string, outputRoot string) error
type GOGenerator ¶
type GOGenerator struct { PackageRoot string SkipSerializer bool // contains filtered or unexported fields }
func NewGoGenerator ¶
func NewGoGenerator() *GOGenerator
func (*GOGenerator) Generate ¶
func (g *GOGenerator) Generate(files []string) ([]*GenerateFile, error)
func (*GOGenerator) GenerateAndOutput ¶
func (g *GOGenerator) GenerateAndOutput(files []string, outputRoot string) error
type GenerateFile ¶
type GenerateTask ¶
func ParseConfig ¶
func ParseConfig(buf []byte, basePath string) ([]*GenerateTask, error)
func (*GenerateTask) Run ¶
func (g *GenerateTask) Run() error
type Generator ¶
type Generator interface { Generate(files []string) ([]*GenerateFile, error) GenerateAndOutput(files []string, outputRoot string) error }
func GetGenerator ¶
type JSGenerator ¶
type JSGenerator struct { SkipSerializer bool PackageNameToDirectory bool // contains filtered or unexported fields }
func NewJSGenerator ¶
func NewJSGenerator() *JSGenerator
func (*JSGenerator) Generate ¶
func (g *JSGenerator) Generate(files []string) ([]*GenerateFile, error)
func (*JSGenerator) GenerateAndOutput ¶
func (g *JSGenerator) GenerateAndOutput(files []string, outputRoot string) error
type TSGenerator ¶
type TSGenerator struct { SkipSerializer bool PackageNameToDirectory bool // contains filtered or unexported fields }
func NewTSGenerator ¶
func NewTSGenerator() *TSGenerator
func (*TSGenerator) Generate ¶
func (g *TSGenerator) Generate(files []string) ([]*GenerateFile, error)
func (*TSGenerator) GenerateAndOutput ¶
func (g *TSGenerator) GenerateAndOutput(files []string, outputRoot string) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.