package gen
import "github.com/knqyf263/go-plugin/gen"
Index ¶
- Variables
- type Generator
- func NewGenerator(plugin *protogen.Plugin) (*Generator, error)
- func (gg *Generator) GenerateFiles(file *protogen.File) *protogen.GeneratedFile
- type Parameter
- type ServiceType
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 ¶
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 }
type ServiceType ¶
type ServiceType string
const ( ServiceHost ServiceType = "host" ServicePlugin ServiceType = "plugin" ServiceUnknown ServiceType = "unknown" ServiceNone ServiceType = "none" )
Source Files ¶
host.go init.go main.go plugin.go reflect.go vtproto.go
- Version
- v0.4.0
- Published
- Dec 1, 2022
- Platform
- js/wasm
- Imports
- 26 packages
- Last checked
- 3 days ago –
Tools for package owners.