mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 01:30:25 +08:00
24fb29a356
* change column to read from information_schema * reactor generate mode from datasource * reactor generate mode from datasource * add primary key check logic * resolve rebase conflicts * add naming style * add filename test case * resolve rebase conflicts * reactor test * add test case * change shell script to makefile * update rpc new * update gen_test.go * format code * format code * update test * generates alias
16 lines
761 B
Go
16 lines
761 B
Go
package generator
|
|
|
|
import "github.com/tal-tech/go-zero/tools/goctl/rpc/parser"
|
|
|
|
type Generator interface {
|
|
Prepare() error
|
|
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
|
|
}
|