parsesvcname

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromPaths

func FromPaths(gopath []string, protoDefPaths []string) (string, error)

FromPaths accepts the paths of protobuf definition files and returns the name of the service in that protobuf definition file.

func FromReaders

func FromReaders(gopath []string, protoDefReaders []io.Reader) (string, error)

func GetGRPCPBFileName added in v0.2.6

func GetGRPCPBFileName(protoPath string, pbPath string) string

GetGRPCPBFileName 获取生成的.pb.go 文件名称 pbPath pb输出路径 protoPath proto 定义路径

func GetPBFileName added in v0.2.6

func GetPBFileName(protoPath string, pbPath string) string

GetPBFileName 获取生成的.pb.go 文件名称 pbPath pb输出路径 protoPath proto 定义路径

Types

This section is empty.

Jump to

Keyboard shortcuts

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