pb

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func struct {
	RpcName  string //service名
	ReqName  string //service 请求参数名
	RespName string //service 响应参数名
}

type Pb

type Pb struct {
	File []string `clop:"short;long;greedy" usage:"Parsing dst files" valid:"required"`
	Dir  string   `clop:"short;long" usage:"gen dir" default:"."`
}

func (*Pb) SubMain

func (b *Pb) SubMain()

type PbTmpl

type PbTmpl struct {
	URLField []string //url字段名
	URLName  string   //url message名字

	PackageName   string //protobuf 文件中的package
	GoPackageName string //protobuf 文件中的go_papckage
	ServiceName   string //protobuf 里面的rcp ServiceName(请求) returns(响应);
	Func          []Func //
	PbType        string //这里面都是类型定义
}

func (*PbTmpl) Gen

func (p *PbTmpl) Gen(w io.Writer) error

Jump to

Keyboard shortcuts

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