Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 SwaggerDef ¶
SwaggerDef sets map of swagger.json per proto file
Click to show internal directories.
Click to hide internal directories.