gen

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 26 Imported by: 0

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.

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 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
	Module     string
}

type ServiceType

type ServiceType string
const (
	ServiceHost    ServiceType = "host"
	ServicePlugin  ServiceType = "plugin"
	ServiceUnknown ServiceType = "unknown"
	ServiceNone    ServiceType = "none"
	EnvModuleName              = "env"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL