Documentation ¶
Index ¶
- type Resolver
- func (h *Resolver) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error)
- func (h *Resolver) FindExtensionByName(name protoreflect.FullName) (protoreflect.ExtensionType, error)
- func (h *Resolver) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)
- func (h *Resolver) FindFileByPath(path string) (protoreflect.FileDescriptor, error)
- func (h *Resolver) FindMessageByName(name protoreflect.FullName) (protoreflect.MessageType, error)
- func (h *Resolver) FindMessageByURL(url string) (protoreflect.MessageType, error)
- func (h *Resolver) NewMessage(fullName protoreflect.FullName) (proto.Message, error)
- func (h *Resolver) NewMessageFromBytes(fullName protoreflect.FullName, blob []byte) (proto.Message, error)
- func (h *Resolver) UnpackAny(m *anypb.Any) (proto.Message, error)
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 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 (*Resolver) NewMessageFromBytes ¶
Click to show internal directories.
Click to hide internal directories.