Documentation ¶
Index ¶
Constants ¶
View Source
const ( ComponentGoMod = "go_mod" ComponentGoMain = "go_main" ComponentConfig = "config" ComponentParams = "params" ComponentService = "service" ComponentServer = "server" ComponentGrpcServer = "grpc_server" ComponentGrpcHandler = "grpc_handler" ComponentGrpcSDK = "grpc_sdk" ComponentHttpServer = "http_server" ComponentHttpHandler = "http_handler" )
Variables ¶
This section is empty.
Functions ¶
func RegisterComponent ¶
Types ¶
type Component ¶
type Component interface { Setup(plugin *protogen.Plugin) Generate(config helper.GenerateConfig) }
func GetComponent ¶
type Option ¶
type Option func(options *genOptions)
func WithComponents ¶
func WithModPath ¶
func WithPbGoDir ¶
func WithProject ¶
type ProjectGenerator ¶
type ProjectGenerator struct {
// contains filtered or unexported fields
}
func NewProjectGenerator ¶
func NewProjectGenerator(plugin *protogen.Plugin) *ProjectGenerator
func (*ProjectGenerator) Generate ¶
func (g *ProjectGenerator) Generate(opts ...Option)
Click to show internal directories.
Click to hide internal directories.