proto

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enum

type Enum struct {
	*parser.Enum
	Fields []*EnumField
}

type EnumField

type EnumField struct {
	*parser.EnumField
}

type Enums

type Enums []*Enum

func (Enums) ByName

func (ee Enums) ByName(name string) *Enum

type Field

type Field struct {
	*parser.Field
	Message *Message
}

func (*Field) OptionByName

func (f *Field) OptionByName(name string) string

func (*Field) Path

func (f *Field) Path() string

type Message

type Message struct {
	*parser.Message
	Fields []*Field
}

type Messages

type Messages []*Message

func (Messages) ByName

func (mm Messages) ByName(name string) *Message

type PBFile

type PBFile struct {
	Messages Messages
	Enums    Enums
	// contains filtered or unexported fields
}

func (*PBFile) VisitComment

func (d *PBFile) VisitComment(_ *parser.Comment)

func (*PBFile) VisitEmptyStatement

func (d *PBFile) VisitEmptyStatement(_ *parser.EmptyStatement) (next bool)

func (*PBFile) VisitEnum

func (d *PBFile) VisitEnum(n *parser.Enum) (next bool)

func (*PBFile) VisitEnumField

func (d *PBFile) VisitEnumField(n *parser.EnumField) (next bool)

func (*PBFile) VisitExtend

func (d *PBFile) VisitExtend(_ *parser.Extend) (next bool)

The rest of these are required by the visitor interface.

func (*PBFile) VisitExtensions

func (d *PBFile) VisitExtensions(_ *parser.Extensions) (next bool)

func (*PBFile) VisitField

func (d *PBFile) VisitField(n *parser.Field) (next bool)

func (*PBFile) VisitGroupField

func (d *PBFile) VisitGroupField(_ *parser.GroupField) (next bool)

func (*PBFile) VisitImport

func (d *PBFile) VisitImport(_ *parser.Import) (next bool)

func (*PBFile) VisitMapField

func (d *PBFile) VisitMapField(_ *parser.MapField) (next bool)

func (*PBFile) VisitMessage

func (d *PBFile) VisitMessage(n *parser.Message) (next bool)

func (*PBFile) VisitOneof

func (d *PBFile) VisitOneof(_ *parser.Oneof) (next bool)

func (*PBFile) VisitOneofField

func (d *PBFile) VisitOneofField(_ *parser.OneofField) (next bool)

func (*PBFile) VisitOption

func (d *PBFile) VisitOption(_ *parser.Option) (next bool)

func (*PBFile) VisitPackage

func (d *PBFile) VisitPackage(_ *parser.Package) (next bool)

func (*PBFile) VisitRPC

func (d *PBFile) VisitRPC(_ *parser.RPC) (next bool)

func (*PBFile) VisitReserved

func (d *PBFile) VisitReserved(_ *parser.Reserved) (next bool)

func (*PBFile) VisitService

func (d *PBFile) VisitService(_ *parser.Service) (next bool)

func (*PBFile) VisitSyntax

func (d *PBFile) VisitSyntax(_ *parser.Syntax) (next bool)

type PBFileGroup

type PBFileGroup []PBFile

type PBFileGroups

type PBFileGroups []PBFileGroup

func Parse

func Parse(_ context.Context, logger zerolog.Logger, inGroups []input.FileGroup) (PBFileGroups, error)

Jump to

Keyboard shortcuts

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