protoparse

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentsContains

func CommentsContains(lines []string, target string) bool

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