descriptors

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

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

Loader handles loading and parsing FileDescriptorSet files

func NewLoader

func NewLoader(logger *zap.Logger) *Loader

NewLoader creates a new descriptor loader

func (*Loader) BuildRegistry

func (l *Loader) BuildRegistry(fdSet *descriptorpb.FileDescriptorSet) (*protoregistry.Files, error)

BuildRegistry creates a protoregistry.Files from a FileDescriptorSet

func (*Loader) ExtractMethodInfo

func (l *Loader) ExtractMethodInfo(files *protoregistry.Files) ([]types.MethodInfo, error)

ExtractMethodInfo extracts method information with service context from file descriptors

func (*Loader) LoadFromFile

func (l *Loader) LoadFromFile(path string) (*descriptorpb.FileDescriptorSet, error)

LoadFromFile loads a FileDescriptorSet from a binary protobuf file

Jump to

Keyboard shortcuts

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