parser

package
v1.1.3-beta Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCase added in v1.0.24

func CamelCase(s string) string

copy from github.com/golang/protobuf@v1.4.2/protoc-gen-go/generator/generator.go:2648

func GetComment added in v1.0.24

func GetComment(comment *proto.Comment) string

func GoSanitized added in v1.0.24

func GoSanitized(s string) string

see google.golang.org/protobuf@v1.25.0/internal/strs/strings.go:71

func NewDefaultProtoParser added in v1.0.24

func NewDefaultProtoParser() *defaultProtoParser

Types

type Import added in v1.0.21

type Import struct {
	*proto.Import
}

type Message added in v1.0.21

type Message struct {
	*pr.Message
}

type Option added in v1.0.24

type Option struct {
	*proto.Option
}

type Package added in v1.0.24

type Package struct {
	*proto.Package
}

type Proto added in v1.0.21

type Proto struct {
	Src       string
	Name      string
	Package   Package
	PbPackage string
	GoPackage string
	Import    []Import
	Message   []Message
	Service   Service
}

type RPC added in v1.0.24

type RPC struct {
	*proto.RPC
}

type Service added in v1.0.24

type Service struct {
	*proto.Service
	RPC []*RPC
}

Jump to

Keyboard shortcuts

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