genpb

package
v0.0.0-...-13d9258 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CGenPbConfig = `gfcli.gen.pb`
	CGenPbBrief  = `parse proto files and generate protobuf go files`
	CGenPbEg     = `
gf gen pb
gf gen pb -p . -a . -p .
`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CGenPb

type CGenPb struct{}

func (CGenPb) Pb

func (c CGenPb) Pb(ctx context.Context, in CGenPbInput) (out *CGenPbOutput, err error)

type CGenPbInput

type CGenPbInput struct {
	g.Meta     `name:"pb" config:"{CGenPbConfig}" brief:"{CGenPbBrief}" eg:"{CGenPbEg}"`
	Path       string `name:"path" short:"p"  dc:"protobuf file folder path" d:"manifest/protobuf"`
	OutputApi  string `name:"api"  short:"a"  dc:"output folder path storing generated go files of api" d:"api"`
	OutputCtrl string `name:"ctrl" short:"c"  dc:"output folder path storing generated go files of controller" d:"internal/controller"`
}

type CGenPbOutput

type CGenPbOutput struct{}

Jump to

Keyboard shortcuts

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