resolver

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: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

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

func New

func New(url string) *Resolver

func Wrap

func Wrap(url string, files *protoregistry.Files, types *protoregistry.Types) *Resolver

func (*Resolver) FindDescriptorByName

func (h *Resolver) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error)

func (*Resolver) FindExtensionByName

func (h *Resolver) FindExtensionByName(name protoreflect.FullName) (protoreflect.ExtensionType, error)

func (*Resolver) FindExtensionByNumber

func (h *Resolver) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)

func (*Resolver) FindFileByPath

func (h *Resolver) FindFileByPath(path string) (protoreflect.FileDescriptor, error)

func (*Resolver) FindMessageByName

func (h *Resolver) FindMessageByName(name protoreflect.FullName) (protoreflect.MessageType, error)

func (*Resolver) FindMessageByURL

func (h *Resolver) FindMessageByURL(url string) (protoreflect.MessageType, error)

func (*Resolver) NewMessage

func (h *Resolver) NewMessage(fullName protoreflect.FullName) (proto.Message, error)

func (*Resolver) NewMessageFromBytes

func (h *Resolver) NewMessageFromBytes(fullName protoreflect.FullName, blob []byte) (proto.Message, error)

func (*Resolver) UnpackAny

func (h *Resolver) UnpackAny(m *anypb.Any) (proto.Message, error)

Jump to

Keyboard shortcuts

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