proto

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marshaler

type Marshaler struct {
	Multiline bool
}

func (Marshaler) Marshal

func (m Marshaler) Marshal(mes protoreflect.ProtoMessage) ([]byte, error)

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser() *Parser

func (*Parser) ParseFiles

func (p *Parser) ParseFiles(filenames ...string) ([]*desc.FileDescriptor, error)

func (*Parser) WalkAndParse added in v0.1.0

func (p *Parser) WalkAndParse(fsys fs.FS, path string) ([]*desc.FileDescriptor, error)

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

func NewPrinter

func NewPrinter() *Printer

func (*Printer) PrintProtoToString

func (p *Printer) PrintProtoToString(desc desc.Descriptor) (string, error)

type Source

type Source struct {
	// contains filtered or unexported fields
}

func NewSource added in v0.1.0

func NewSource(files, includedFiles []*desc.FileDescriptor) *Source

func (*Source) AllExtensionsForType

func (s *Source) AllExtensionsForType(_ string) ([]*desc.FieldDescriptor, error)

func (*Source) FindMessage

func (s *Source) FindMessage(message string) (*desc.MessageDescriptor, error)

func (*Source) FindMethod

func (s *Source) FindMethod(method string) (*desc.MethodDescriptor, error)

func (*Source) FindService

func (s *Source) FindService(service string) (*desc.ServiceDescriptor, error)

func (*Source) FindSymbol

func (s *Source) FindSymbol(symbol string) (desc.Descriptor, error)

func (*Source) GetMessages

func (s *Source) GetMessages() []*desc.MessageDescriptor

func (*Source) GetServices

func (s *Source) GetServices() []*desc.ServiceDescriptor

func (*Source) ListServices

func (s *Source) ListServices() ([]string, error)

Jump to

Keyboard shortcuts

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