package gen
import "github.com/knqyf263/go-plugin/gen"
Index ¶
- Constants
- Variables
- type Generator
- func NewGenerator(plugin *protogen.Plugin) (*Generator, error)
- func (gg *Generator) GenerateFiles(file *protogen.File, opts Options) *protogen.GeneratedFile
- type Options
- type Parameter
- type ServiceType
Constants ¶
const ( // ErrorMaskBit bit values to indicate if there is an error in the returned data. ErrorMaskBit = "(1 << 31)" )
Variables ¶
var GenerateVersionMarkers = true
GenerateVersionMarkers specifies whether to generate version markers.
var SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL)
SupportedFeatures reports the set of supported protobuf language features.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func (*Generator) GenerateFiles ¶
GenerateFiles generates the contents of a .pb.go file.
type Options ¶
type Options struct { DisablePBGen bool }
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 ¶
host.go init.go main.go options.go plugin.go reflect.go vtproto.go
- Version
- v0.9.0 (latest)
- Published
- Mar 11, 2025
- Platform
- linux/amd64
- Imports
- 26 packages
- Last checked
- 1 day ago –
Tools for package owners.