generator

package
v0.0.0-...-94d0c95 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	FilenamePrefix string
	GoPackageName  protogen.GoPackageName
	GoImportPath   protogen.GoImportPath
	Gen            *protogen.Plugin
	Streams        map[string]int
	RegistryTags   map[string]*options.RegistryTag
	Services       []*protogen.Service
	Imports        map[string]bool
}

Generator holds the config used to generate the files

func (*Generator) GenerateFile

func (g *Generator) GenerateFile() *protogen.GeneratedFile

GenerateFile generates a _ascii.pb.go file containing gRPC service definitions.

Jump to

Keyboard shortcuts

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