Documentation ¶
Index ¶
- type CombinedResolvers
- func (c CombinedResolvers) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error)
- func (c CombinedResolvers) FindExtensionByName(name protoreflect.FullName) (protoreflect.ExtensionType, error)
- func (c CombinedResolvers) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)
- func (c CombinedResolvers) FindFileByPath(path string) (protoreflect.FileDescriptor, error)
- func (c CombinedResolvers) FindMessageByName(name protoreflect.FullName) (protoreflect.MessageType, error)
- func (c CombinedResolvers) FindMessageByURL(name string) (protoreflect.MessageType, error)
- type RegistryResolver
- type Resolver
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 (c CombinedResolvers) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)
func (CombinedResolvers) FindFileByPath ¶
func (c CombinedResolvers) FindFileByPath(path string) (protoreflect.FileDescriptor, error)
func (CombinedResolvers) FindMessageByName ¶
func (c CombinedResolvers) FindMessageByName(name protoreflect.FullName) (protoreflect.MessageType, error)
func (CombinedResolvers) FindMessageByURL ¶
func (c CombinedResolvers) FindMessageByURL(name string) (protoreflect.MessageType, error)
type RegistryResolver ¶
type RegistryResolver struct { *protoregistry.Files *protoregistry.Types }
type Resolver ¶
type Resolver interface { protodesc.Resolver protoregistry.MessageTypeResolver protoregistry.ExtensionTypeResolver }
func NewGlobalResolver ¶
func NewGlobalResolver() Resolver
NewGlobalResolver returns a Resolver that is baked by protoregistry.GlobalFiles and protoregistry.GloablTypes.
Click to show internal directories.
Click to hide internal directories.