grpc

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: BSD-2-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMetadata added in v0.0.4

func ParseMetadata(metadata string) (string, string, error)

Types

type ReflectionRegistry

type ReflectionRegistry struct {
	RegistryFiles *protoregistry.Files
}

func InvokeServerReflection

func InvokeServerReflection(endpoint string, fullMethod string) (*ReflectionRegistry, error)

func (*ReflectionRegistry) FindMethodDescriptor

func (r *ReflectionRegistry) FindMethodDescriptor(fullMethod string) (protoreflect.MethodDescriptor, error)

type Request

type Request struct {
	Metadata map[string][]string
	Body     *wrap.JsonValue
}

type Response

type Response struct {
	Header map[string][]string
	Body   *wrap.JsonValue
	Error  *wrap.JsonValue
	Status *status.Status
}

func InvokeRPC

func InvokeRPC(endpoint string, methodDescriptor protoreflect.MethodDescriptor, req Request) (*Response, error)

func NewResponse

func NewResponse() *Response

Jump to

Keyboard shortcuts

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