proto_descriptor

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MsgDesc = MessageDesc{Desc: make(map[string]*desc.MessageDescriptor, 0)}

Functions

func LoadProtoDescriptors

func LoadProtoDescriptors(descriptorPaths ...string) (map[string]*desc.MethodDescriptor, error)

func LoadProtoDirectories

func LoadProtoDirectories(roots ...string) (map[string]*desc.MethodDescriptor, error)

recursively walks through all files in the given directories and finds .proto files that contains service definitions

Types

type MessageDesc

type MessageDesc struct {
	Desc map[string]*desc.MessageDescriptor
	sync.Mutex
}

Jump to

Keyboard shortcuts

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