2020-11-05 14:12:47 +08:00
|
|
|
package generator
|
|
|
|
|
|
|
|
|
|
import "github.com/tal-tech/go-zero/tools/goctl/rpc/parser"
|
|
|
|
|
|
|
|
|
|
type Generator interface {
|
|
|
|
|
Prepare() error
|
2020-11-18 15:32:53 +08:00
|
|
|
GenMain(ctx DirContext, proto parser.Proto, namingStyle NamingStyle) error
|
|
|
|
|
GenCall(ctx DirContext, proto parser.Proto, namingStyle NamingStyle) error
|
|
|
|
|
GenEtc(ctx DirContext, proto parser.Proto, namingStyle NamingStyle) error
|
|
|
|
|
GenConfig(ctx DirContext, proto parser.Proto, namingStyle NamingStyle) error
|
|
|
|
|
GenLogic(ctx DirContext, proto parser.Proto, namingStyle NamingStyle) error
|
|
|
|
|
GenServer(ctx DirContext, proto parser.Proto, namingStyle NamingStyle) error
|
|
|
|
|
GenSvc(ctx DirContext, proto parser.Proto, namingStyle NamingStyle) error
|
|
|
|
|
GenPb(ctx DirContext, protoImportPath []string, proto parser.Proto, namingStyle NamingStyle) error
|
2020-11-05 14:12:47 +08:00
|
|
|
}
|