generator.go 761 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, namingStyle NamingStyle) error
  6. GenCall(ctx DirContext, proto parser.Proto, namingStyle NamingStyle) error
  7. GenEtc(ctx DirContext, proto parser.Proto, namingStyle NamingStyle) error
  8. GenConfig(ctx DirContext, proto parser.Proto, namingStyle NamingStyle) error
  9. GenLogic(ctx DirContext, proto parser.Proto, namingStyle NamingStyle) error
  10. GenServer(ctx DirContext, proto parser.Proto, namingStyle NamingStyle) error
  11. GenSvc(ctx DirContext, proto parser.Proto, namingStyle NamingStyle) error
  12. GenPb(ctx DirContext, protoImportPath []string, proto parser.Proto, namingStyle NamingStyle) error
  13. }