protobuf

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegistriesFromMap

func RegistriesFromMap(filesMap map[string]string) (*protoregistry.Files, *protoregistry.Types, error)

RegistriesFromMap attempts to parse a map of filenames (relative to import directories) and their contents out into a registry of protobuf files and protobuf types. These registries can then be used as a mechanism for dynamically (un)marshalling the definitions within.

Types

type MultiModuleWatcher added in v1.7.0

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

func (*MultiModuleWatcher) FindEnumByName added in v1.7.0

func (*MultiModuleWatcher) FindExtensionByName added in v1.7.0

func (w *MultiModuleWatcher) FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error)

func (*MultiModuleWatcher) FindExtensionByNumber added in v1.7.0

func (*MultiModuleWatcher) FindMessageByName added in v1.7.0

func (w *MultiModuleWatcher) FindMessageByName(message protoreflect.FullName) (protoreflect.MessageType, error)

func (*MultiModuleWatcher) FindMessageByURL added in v1.7.0

func (w *MultiModuleWatcher) FindMessageByURL(url string) (protoreflect.MessageType, error)

Jump to

Keyboard shortcuts

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