Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
Options
// contains filtered or unexported fields
}
func (*Generator) CheckDuplicateEndpoint ¶
func (g *Generator) CheckDuplicateEndpoint( method, pathTemplate string, service *descriptor.Service) error
func (*Generator) Generate ¶
func (g *Generator) Generate(targets []*descriptor.File) ([]*descriptor.ResponseFile, error)
type Options ¶
type Options struct {
// RegisterFunctionSuffix is used to construct names of the generated Register*<Suffix> methods.
RegisterFunctionSuffix string
// UseHTTPRequestContext controls whether or not HTTP request's context gets used.
UseHTTPRequestContext bool
// RepeatedPathParameterSeparator determines how repeated fields should be split when used in path segments.
RepeatedPathParameterSeparator descriptor.PathParameterSeparator
// AllowPatchFeature determines whether to use PATCH feature involving update masks
// (using using google.protobuf.FieldMask).
AllowPatchFeature bool
// OmitPackageDoc indicates whether or not package commments should be included in generated code.
OmitPackageDoc bool
// Standalone generates a standalone gateway package, which imports the target service package.
Standalone bool
// GenerateLocal generates code to work a server implementation directly.
GenerateLocal bool
}
Options are the options for the code generator.
Click to show internal directories.
Click to hide internal directories.