Versions in this module Expand all Collapse all v1 v1.0.1 Jun 16, 2021 v1.0.0 Jun 11, 2021 Changes in this version + func Category() string + func Clean() error + func GenTemplates(_ *cli.Context) error + func ProtoTmpl(out string) error + func RevertTemplate(name string) error + func Update() error + type DefaultGenerator struct + func NewDefaultGenerator() *DefaultGenerator + func (g *DefaultGenerator) GenCall(ctx DirContext, proto parser.Proto, cfg *conf.Config) error + func (g *DefaultGenerator) GenConfig(ctx DirContext, _ parser.Proto, cfg *conf.Config) error + func (g *DefaultGenerator) GenEtc(ctx DirContext, _ parser.Proto, cfg *conf.Config) error + func (g *DefaultGenerator) GenLogic(ctx DirContext, proto parser.Proto, cfg *conf.Config) error + func (g *DefaultGenerator) GenMain(ctx DirContext, proto parser.Proto, cfg *conf.Config) error + func (g *DefaultGenerator) GenPb(ctx DirContext, protoImportPath []string, proto parser.Proto, _ *conf.Config) error + func (g *DefaultGenerator) GenServer(ctx DirContext, proto parser.Proto, cfg *conf.Config) error + func (g *DefaultGenerator) GenSvc(ctx DirContext, _ parser.Proto, cfg *conf.Config) error + func (g *DefaultGenerator) Prepare() error + type Dir struct + Base string + Filename string + Package string + func (d *Dir) Valid() bool + type DirContext interface + GetCall func() Dir + GetConfig func() Dir + GetEtc func() Dir + GetInternal func() Dir + GetLogic func() Dir + GetMain func() Dir + GetPb func() Dir + GetServer func() Dir + GetServiceName func() stringx.String + GetSvc func() Dir + type Generator interface + GenCall func(ctx DirContext, proto parser.Proto, cfg *conf.Config) error + GenConfig func(ctx DirContext, proto parser.Proto, cfg *conf.Config) error + GenEtc func(ctx DirContext, proto parser.Proto, cfg *conf.Config) error + GenLogic func(ctx DirContext, proto parser.Proto, cfg *conf.Config) error + GenMain func(ctx DirContext, proto parser.Proto, cfg *conf.Config) error + GenPb func(ctx DirContext, protoImportPath []string, proto parser.Proto, cfg *conf.Config) error + GenServer func(ctx DirContext, proto parser.Proto, cfg *conf.Config) error + GenSvc func(ctx DirContext, proto parser.Proto, cfg *conf.Config) error + Prepare func() error + type RPCGenerator struct + func NewDefaultRPCGenerator(style string) (*RPCGenerator, error) + func NewRPCGenerator(g Generator, cfg *conf.Config) *RPCGenerator + func (g *RPCGenerator) Generate(src, target string, protoImportPath []string) error