Documentation ¶
Index ¶
- type Marshaler
- type Parser
- type Printer
- type Source
- func (s *Source) AllExtensionsForType(_ string) ([]*desc.FieldDescriptor, error)
- func (s *Source) FindMessage(message string) (*desc.MessageDescriptor, error)
- func (s *Source) FindMethod(method string) (*desc.MethodDescriptor, error)
- func (s *Source) FindService(service string) (*desc.ServiceDescriptor, error)
- func (s *Source) FindSymbol(symbol string) (desc.Descriptor, error)
- func (s *Source) GetMessages() []*desc.MessageDescriptor
- func (s *Source) GetServices() []*desc.ServiceDescriptor
- func (s *Source) ListServices() ([]string, error)
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 (*Parser) ParseFiles ¶
func (p *Parser) ParseFiles(filenames ...string) ([]*desc.FileDescriptor, error)
func (*Parser) WalkAndParse ¶ added in v0.1.0
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 ¶
Click to show internal directories.
Click to hide internal directories.