You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
561 B
Go
16 lines
561 B
Go
4 years ago
|
package generator
|
||
|
|
||
|
import "github.com/tal-tech/go-zero/tools/goctl/rpc/parser"
|
||
|
|
||
|
type Generator interface {
|
||
|
Prepare() error
|
||
|
GenMain(ctx DirContext, proto parser.Proto) error
|
||
|
GenCall(ctx DirContext, proto parser.Proto) error
|
||
|
GenEtc(ctx DirContext, proto parser.Proto) error
|
||
|
GenConfig(ctx DirContext, proto parser.Proto) error
|
||
|
GenLogic(ctx DirContext, proto parser.Proto) error
|
||
|
GenServer(ctx DirContext, proto parser.Proto) error
|
||
|
GenSvc(ctx DirContext, proto parser.Proto) error
|
||
|
GenPb(ctx DirContext, protoImportPath []string, proto parser.Proto) error
|
||
|
}
|