package gen

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

Index

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.

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, opts Options) *protogen.GeneratedFile

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.