grpchelper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMessage

func CreateMessage(mdesc *desc.MethodDescriptor, unmarshaler *jsonpb.Unmarshaler, inputJsonString string) (*dynamic.Message, error)

func GrpcDynamicQuery

func GrpcDynamicQuery(ctx context.Context, reflectionClient *grpcreflect.Client, stub *grpcdynamic.Stub, queryPath string, queryData string) (string, error)

func GrpcInvokeQuery

func GrpcInvokeQuery(
	ctx context.Context,
	methodDescriptor *desc.MethodDescriptor,
	stub *grpcdynamic.Stub,
	queryData string,
) (string, error)

func GrpcMakeDescriptor

func GrpcMakeDescriptor(reflectionClient *grpcreflect.Client, queryPath string) (*desc.MethodDescriptor, error)

func ResolveMessage

func ResolveMessage(fullMethodName string, rcli *grpcreflect.Client) (*desc.MethodDescriptor, error)

Types

type DynamicAnyResolver

func (DynamicAnyResolver) Resolve

func (DynamicAnyResolver) Resolve(typeURL string) (proto.Message, error)

Resolve implements jsonpb.AnyResolver.Resolve

Jump to

Keyboard shortcuts

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