generator.go 561 B

123456789101112131415
  1. package generator
  2. import "github.com/tal-tech/go-zero/tools/goctl/rpc/parser"
  3. type Generator interface {
  4. Prepare() error
  5. GenMain(ctx DirContext, proto parser.Proto) error
  6. GenCall(ctx DirContext, proto parser.Proto) error
  7. GenEtc(ctx DirContext, proto parser.Proto) error
  8. GenConfig(ctx DirContext, proto parser.Proto) error
  9. GenLogic(ctx DirContext, proto parser.Proto) error
  10. GenServer(ctx DirContext, proto parser.Proto) error
  11. GenSvc(ctx DirContext, proto parser.Proto) error
  12. GenPb(ctx DirContext, protoImportPath []string, proto parser.Proto) error
  13. }