Files
go-zero/tools/goctl/rpc/parser/proto.go

17 lines
423 B
Go

package parser
// Proto describes a proto file,
type Proto struct {
Src string
Name string
Package Package
PbPackage string
GoPackage string
Import []Import
Message []Message
Service Services
// ImportedProtos holds the metadata for all transitively imported proto files.
// Populated by the generator before code generation.
ImportedProtos []ImportedProto
}