package gen

import "github.com/knqyf263/go-plugin/gen"

Index

Variables

var GenerateVersionMarkers = true

GenerateVersionMarkers specifies whether to generate version markers.

SupportedFeatures reports the set of supported protobuf language features.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(plugin *protogen.Plugin) (*Generator, error)

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.