Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DescriptorSourceFromFileDescriptorSet ¶
func DescriptorSourceFromFileDescriptorSet(files *descriptorpb.FileDescriptorSet) (grpcproxy.DescriptorSource, error)
DescriptorSourceFromFileDescriptorSet creates a DescriptorSource that is backed by the FileDescriptorSet.
func DescriptorSourceFromProtoset ¶
func DescriptorSourceFromProtoset(filenames []string) (grpcproxy.DescriptorSource, error)
DescriptorSourceFromProtoset creates a DescriptorSource that is backed by the named files, whose contents are Protocol Buffer source files. The given importPaths are used to locate any imported files.
func InitProtosetSource ¶
func InitProtosetSource(protoset []string)
Types ¶
type MethodInvocation ¶
type MethodInvocation struct { *desc.MethodDescriptor *dynamic.Message }
MethodInvocation contains a method and a message used to invoke an RPC
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
type Reflector ¶
type Reflector struct {
// contains filtered or unexported fields
}
func NewReflector ¶
func NewReflector(client *grpcreflect.Client) *Reflector
NewReflector creates a new Reflector from the reflection client
func (*Reflector) CreateInvocation ¶
func (r *Reflector) CreateInvocation(ctx context.Context, serviceName, methodName string, input []byte) (*MethodInvocation, error)
CreateInvocation creates a MethodInvocation by performing reflection
Click to show internal directories.
Click to hide internal directories.