protobuf

package
v0.0.0-...-2b8a094 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Flags = new(flag.FlagSet)

Functions

func FPrint

func FPrint(buf io.Writer, g *protogen.GeneratedFile, v ...interface{})

func GenerateClientFile

func GenerateClientFile(gen *protogen.Plugin, file *protogen.File) *protogen.GeneratedFile

GenerateClientFile generates Service client with go-kit endpoint

func GenerateHandlerFile

func GenerateHandlerFile(gen *protogen.Plugin, file *protogen.File) *protogen.GeneratedFile

GenerateHandlerFile generates handler to be implemented.

func GenerateTestFile

func GenerateTestFile(gen *protogen.Plugin, file *protogen.File, handlerFileName string, handlerAst *ast.File) *protogen.GeneratedFile

GenerateTestFile generates go _test file to _test service client methods.

func ParsePackageDir

func ParsePackageDir(fset *token.FileSet, path string) (pkg *ast.Package, first error)

Types

type Decl

type Decl struct {
	File string
	Decl ast.Decl
}

type Flag

type Flag struct {
	Test      bool
	Handler   string
	Mesh      string
	Namespace string
	Port      string
	Name      string
	Options   string
}

func GetConfig

func GetConfig() *Flag

Jump to

Keyboard shortcuts

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