Documentation ¶
Index ¶
- type Meta
- type Registry
- func (r *Registry) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error)
- func (r *Registry) FindFileByPath(path string) (protoreflect.FileDescriptor, error)
- func (r *Registry) FindMetaByName(name string) (Meta, bool)
- func (r *Registry) FindMetaByUuid(uuid uuid.UUID) (Meta, bool)
- func (r *Registry) ListFilesMeta() []Meta
- func (r *Registry) LoadProtoBinaryFileFromDisk(meta Meta, path string) error
- func (r *Registry) NumFiles() int
- func (r *Registry) NumFilesByPackage(name protoreflect.FullName) int
- func (r *Registry) RangeFiles(fn func(fd protoreflect.FileDescriptor) bool)
- func (r *Registry) RangeFilesByPackage(name protoreflect.FullName, fn func(fd protoreflect.FileDescriptor) bool)
- func (r *Registry) RegisterFile(meta Meta, fd protoreflect.FileDescriptor) error
- func (r *Registry) RegisterFileProto(meta Meta, p *descriptorpb.FileDescriptorProto) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
var GlobalRegistry *Registry = NewRegistry()
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) FindDescriptorByName ¶
func (r *Registry) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error)
func (*Registry) FindFileByPath ¶
func (r *Registry) FindFileByPath(path string) (protoreflect.FileDescriptor, error)
func (*Registry) ListFilesMeta ¶
func (*Registry) LoadProtoBinaryFileFromDisk ¶
func (*Registry) NumFilesByPackage ¶
func (r *Registry) NumFilesByPackage(name protoreflect.FullName) int
func (*Registry) RangeFiles ¶
func (r *Registry) RangeFiles(fn func(fd protoreflect.FileDescriptor) bool)
func (*Registry) RangeFilesByPackage ¶
func (r *Registry) RangeFilesByPackage(name protoreflect.FullName, fn func(fd protoreflect.FileDescriptor) bool)
func (*Registry) RegisterFile ¶
func (r *Registry) RegisterFile(meta Meta, fd protoreflect.FileDescriptor) error
func (*Registry) RegisterFileProto ¶
func (r *Registry) RegisterFileProto(meta Meta, p *descriptorpb.FileDescriptorProto) error
Click to show internal directories.
Click to hide internal directories.