Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustRegisterImplFileNameTemplate ¶ added in v2.3.7
func MustRegisterImplFileNameTemplate(tmpl string)
func MustRegisterImplTypeNameTemplate ¶ added in v2.2.9
func MustRegisterImplTypeNameTemplate(tmpl string)
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func New ¶
func New(reg *descriptor.Registry, opts ...Option) *Generator
New returns a new generator which generates handler wrappers.
func (*Generator) Generate ¶
func (g *Generator) Generate(targets []*descriptor.File) ([]*plugin.CodeGeneratorResponse_File, error)
type Option ¶
type Option func(*options)
func ApplyDefaultMiddlewares ¶
ApplyDefaultMiddlewares toggles application of httpruntime/httpmw.DefaultChain to every generated handler.
func ServiceSubDir ¶ added in v2.2.9
ServiceSubDir sets impl generation into sub directory
func SwaggerDef ¶
SwaggerDef sets map of swagger.json per proto file
Click to show internal directories.
Click to hide internal directories.