Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenTemplates ¶
func NewDefaultGenerator ¶
func NewDefaultGenerator() *defaultGenerator
func RevertTemplate ¶
Types ¶
type DirContext ¶
type Generator ¶
type Generator interface { Prepare() error GenMain(ctx DirContext, proto parser.Proto, cfg *conf.Config) error GenCall(ctx DirContext, proto parser.Proto, cfg *conf.Config) error GenEtc(ctx DirContext, proto parser.Proto, cfg *conf.Config) error GenConfig(ctx DirContext, proto parser.Proto, cfg *conf.Config) error GenLogic(ctx DirContext, proto parser.Proto, cfg *conf.Config) error GenServer(ctx DirContext, proto parser.Proto, cfg *conf.Config) error GenSvc(ctx DirContext, proto parser.Proto, cfg *conf.Config) error GenPb(ctx DirContext, protoImportPath []string, proto parser.Proto, cfg *conf.Config) error }
type RpcGenerator ¶
type RpcGenerator struct {
// contains filtered or unexported fields
}
func NewDefaultRpcGenerator ¶
func NewDefaultRpcGenerator(style string) (*RpcGenerator, error)
func NewRpcGenerator ¶
func NewRpcGenerator(g Generator, cfg *conf.Config) *RpcGenerator
Click to show internal directories.
Click to hide internal directories.