Versions in this module Expand all Collapse all v1 v1.6.3 Dec 20, 2023 v1.6.2 Nov 30, 2023 v1.6.1 Nov 30, 2023 v0 v0.0.7 Nov 30, 2023 v0.0.6 Nov 30, 2023 v0.0.5 Sep 5, 2023 v0.0.4 Sep 5, 2023 Changes in this version + func GetLockKey(rpc *parser.RPC) (string, string, int) + func HasLock(service parser.Service) bool v0.0.3 Sep 5, 2023 v0.0.2 Sep 5, 2023 Changes in this version + func Category() string + func Clean() error + func GenTemplates() error + func GetGroup(service parser.Service) (data []string) + func GetGroupName(rpc *parser.RPC) string + func ProtoTmpl(out string) error + func RevertTemplate(name string) error + func Update() error + type Dir struct + Base string + Filename string + GetChildPackage func(childPath string) (string, error) + 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 + GetProtoGo func() Dir + GetServer func() Dir + GetServiceName func() stringx.String + GetSvc func() Dir + SetPbDir func(pbDir, grpcDir string) + type Generator struct + func NewGenerator(style string, verbose bool) *Generator + func (g *Generator) GenBaseDesc(ctx DirContext, _ parser.Proto, cfg *conf.Config, c *ZRpcContext) error + func (g *Generator) GenCall(ctx DirContext, proto parser.Proto, cfg *conf.Config, c *ZRpcContext) error + func (g *Generator) GenConfig(ctx DirContext, _ parser.Proto, cfg *conf.Config, c *ZRpcContext) error + func (g *Generator) GenEntTx(ctx DirContext, _ parser.Proto, cfg *conf.Config, c *ZRpcContext) error + func (g *Generator) GenErrorHandler(ctx DirContext, _ parser.Proto, cfg *conf.Config, c *ZRpcContext) error + func (g *Generator) GenEtc(ctx DirContext, _ parser.Proto, cfg *conf.Config, c *ZRpcContext) error + func (g *Generator) GenGitlab(ctx DirContext, _ parser.Proto, cfg *conf.Config, c *ZRpcContext) error + func (g *Generator) GenLogic(ctx DirContext, proto parser.Proto, cfg *conf.Config, c *ZRpcContext) error + func (g *Generator) GenMain(ctx DirContext, proto parser.Proto, cfg *conf.Config, c *ZRpcContext) error + func (g *Generator) GenPb(ctx DirContext, c *ZRpcContext) error + func (g *Generator) GenServer(ctx DirContext, proto parser.Proto, cfg *conf.Config, c *ZRpcContext) error + func (g *Generator) GenSvc(ctx DirContext, _ parser.Proto, cfg *conf.Config, c *ZRpcContext) error + func (g *Generator) Generate(zctx *ZRpcContext) error + func (g *Generator) Prepare() error + type MainServiceTemplateData struct + Pkg string + ServerPkg string + Service string + type ZRpcContext struct + DockerFile bool + Ent bool + Gitlab bool + GoOutput string + GrpcOutput string + I18n bool + IsGenClient bool + IsGooglePlugin bool + MakeFile bool + ModuleName string + Multiple bool + Output string + Port int + ProtoGenGoDir string + ProtoGenGrpcDir string + ProtocCmd string + RpcName string + Schema string + Src string + UseDescDir bool v0.0.1 Sep 5, 2023