stub

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stub

type Stub interface {
	// InvokeRPC calls the backend gRPC method with the message provided in JSON.
	// This performs reflection against the backend every time it is called.
	InvokeRPC(
		ctx context.Context,
		invocation *reflection.MethodInvocation,
		md *metadata.Metadata) (reflection.Message, error)
}

Stub performs gRPC calls based on descriptors obtained through reflection

func NewStub

func NewStub(s grpcdynamicStub) Stub

NewStub creates a new Stub with the passed connection

Jump to

Keyboard shortcuts

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