protoresolve

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombinedResolvers

type CombinedResolvers []Resolver

func NewCombinedResolver

func NewCombinedResolver(resolvers ...Resolver) CombinedResolvers

NewCombinedResolver returns a new combined resolver that queries each resolver in order.

func (CombinedResolvers) FindDescriptorByName

func (c CombinedResolvers) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error)

func (CombinedResolvers) FindExtensionByName

func (c CombinedResolvers) FindExtensionByName(name protoreflect.FullName) (protoreflect.ExtensionType, error)

func (CombinedResolvers) FindExtensionByNumber

func (CombinedResolvers) FindFileByPath

func (c CombinedResolvers) FindFileByPath(path string) (protoreflect.FileDescriptor, error)

func (CombinedResolvers) FindMessageByName

func (CombinedResolvers) FindMessageByURL

func (c CombinedResolvers) FindMessageByURL(name string) (protoreflect.MessageType, error)

type RegistryResolver

type RegistryResolver struct {
	*protoregistry.Files
	*protoregistry.Types
}

type Resolver

func NewGlobalResolver

func NewGlobalResolver() Resolver

NewGlobalResolver returns a Resolver that is baked by protoregistry.GlobalFiles and protoregistry.GloablTypes.

Jump to

Keyboard shortcuts

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