Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ErrorMaskBit bit values to indicate if there is an error in the returned data.
ErrorMaskBit = "(1 << 31)"
)
Variables ¶
View Source
var GenerateVersionMarkers = true
GenerateVersionMarkers specifies whether to generate version markers.
View Source
var SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL)
SupportedFeatures reports the set of supported protobuf language features.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) GenerateFiles ¶
func (gg *Generator) GenerateFiles(file *protogen.File) *protogen.GeneratedFile
GenerateFiles generates the contents of a .pb.go file.
type Parameter ¶
type Parameter struct { APIVersion int Type ServiceType Module string }
type ServiceType ¶
type ServiceType string
const ( ServiceHost ServiceType = "host" ServicePlugin ServiceType = "plugin" ServiceUnknown ServiceType = "unknown" ServiceNone ServiceType = "none" EnvModuleName = "env" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.