Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extract ¶
func Extract(r io.Reader, fnc ExtractFunc) error
Extract reads data from r and calls a function for each occurrence of protobuf file descriptors.
func ExtractBytes ¶
func ExtractBytes(data []byte, fnc ExtractFunc) error
ExtractBytes calls a function for each occurrence of protobuf file descriptors in a bytes slice.
Types ¶
type ExtractFunc ¶
type ExtractFunc func(data []byte, fd *FileDescriptorProto) error
ExtractFunc is a callback for Extract functions. The first argument is an encoded proto file descriptor, and the second one is a decoded file descriptor.
type FileDescriptorProto ¶
type FileDescriptorProto = descriptor.FileDescriptorProto
FileDescriptorProto is an alias for protobuf's FileDescriptorProto.
Click to show internal directories.
Click to hide internal directories.