protoparse

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCase added in v0.0.3

func CamelCase(s string) string

func GoSanitized

func GoSanitized(s string) string

Types

type Import

type Import struct {
	*proto.Import
}

type Message

type Message struct {
	*proto.Message
}

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 ProtoParser

type ProtoParser struct{}

func NewProtoParser

func NewProtoParser() *ProtoParser

func (*ProtoParser) Parse

func (p *ProtoParser) Parse(src string) (Proto, error)

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