parser

package
v0.0.0-...-6515077 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPbPackage

func GetPbPackage(fd *descriptor.FileDescriptor, fileOption string) (string, error)

GetPbPackage 获取pb放置的路径

func ParseProtoFile

func ParseProtoFile(option *params.Option) (*descriptor.FileDescriptor, error)

ParseProtoFile 解析proto文件,返回一个构造好的可以应用于模板填充的FileDescriptor对象

ParseProtoFile负责的工作包括: - 解析pb文件,拿到原始的描述信息 - 检查工程约束,如是否制定了go_option、method option等自定义的一些业务开发约束

Types

This section is empty.

Jump to

Keyboard shortcuts

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