package
5.3.0+incompatible
Repository: https://github.com/omniprojects/twirp.git
Documentation: pkg.go.dev

# Functions

EnumDescriptor returns the EnumDescriptorProto describing an enum value, and the FileDescriptorProto in which the enum is defined.
EnumInFile uses the given path to find an enum in the given file.
MessageDescriptor returns the DescriptorProto describing a message value, and the FileDescriptorProto in which the message is defined.
MessageInFile finds a message in fd using the given path as an address.
ServiceDescriptor returns the ServiceDescriptorProto describing a service value, and the FileDescriptorProto in which the service is defined.
ServiceInFile uses the given index to find the service within the given FileDescriptorProto.
UnpackFile reads gz as a gzipped, protobuf-encoded FileDescriptorProto.

# Interfaces

A DescribableEnum provides a gzipped, protobuf-encoded FileDescriptorProto, and a series of ints which index into the File to provide the address of an EnumDescriptorProto describing an enum.
A DescribableMessage provides a gzipped, protobuf-encoded FileDescriptorProto, and a series of ints which index into the File to provide the address of a DescriptorProto describing a message.
A DescribableService provides a gzipped, protobuf-encoded FileDescriptorProto, and an int which indexes into the File to provide the address of a ServiceDescriptorProto describing a service.