Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DescriptorProvider ¶
type DescriptorProvider interface { // FindService returns a service descriptor for the given fully-qualified symbol name. FindService(fullyQualifiedName string) (*desc.ServiceDescriptor, error) // FindMessage return a message descriptor for the given fully-qualified symbol name. FindMessage(messageType string) (*desc.MessageDescriptor, error) Close() }
DescriptorProvider is a source of protobuf descriptor information. It can be backed by a FileDescriptorSet proto (like a file generated by protoc).
func NewDescriptorProviderFileDescriptorSet ¶
func NewDescriptorProviderFileDescriptorSet(files *descriptor.FileDescriptorSet) (DescriptorProvider, error)
NewDescriptorProviderFileDescriptorSet creates a DescriptorSource that is backed by the FileDescriptorSet.
func NewDescriptorProviderFileDescriptorSetBins ¶
func NewDescriptorProviderFileDescriptorSetBins(fileNames ...string) (DescriptorProvider, error)
NewDescriptorProviderFileDescriptorSetBins creates a DescriptorSource that is backed by the named files, whose contents are encoded FileDescriptorSet protos.
func NewDescriptorProviderReflection ¶
func NewDescriptorProviderReflection(args ReflectionArgs) (DescriptorProvider, error)
NewDescriptorProviderReflection returns a DescriptorProvider that reaches out to a reflection server to access file descriptors.
Click to show internal directories.
Click to hide internal directories.