transport

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: 10 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 Transport

type Transport struct {
	// 来自哪个服务端
	FromType string `clop:"long" usage:"server template type" default:"go-zero"`
	// 推到哪个客户端
	ToType string `clop:"long" usage:"client template type" default:"h2o-http-client"`
	// 设置服务端包的基本url
	FromBaseURL string `clop:"--from-base-url" usage:"from base url"`
	// 设置客户端包的基本url
	ToBaseURL string `clop:"--to-base-url" usage:"to base url"`
	// 解析
	File []string `clop:"short;long;greedy" usage:"Parsing dst files" valid:"required"`
	// 生成目录
	Dir string `clop:"short;long" usage:"gen dir" default:"."`
}

这是主模块 TransportTmpl模块,就是选用一种服务端接入数据,然后选用一种客户端把数据发走

func (*Transport) SubMain

func (t *Transport) SubMain()

入口

Jump to

Keyboard shortcuts

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