parser

package
v1.1.5-0...-dfb45c8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCase

func CamelCase(s string) string

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

func GetComment

func GetComment(comment *proto.Comment) string

func GoSanitized

func GoSanitized(s string) string

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

func NewDefaultProtoParser

func NewDefaultProtoParser() *defaultProtoParser

Types

type Import

type Import struct {
	*proto.Import
}

type Message

type Message struct {
	*pr.Message
}

type Option

type Option struct {
	*proto.Option
}

type Package

type Package struct {
	*proto.Package
}

type Proto

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

type RPC

type RPC struct {
	*proto.RPC
}

type Service

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