client

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(address, serv, meth string, req, res proto.Message, hdr http.Header) error

Do is a helper for invoking grpc-fallback requests. It uses the default HTTP client, crafts the URL based on the address, fully qualified name of the gRPC Service and the Method name. The given request protobuf is serialized and used as the payload. A successful response is deserialized into the given response proto. A non-2xx response status is returned as an error containing the underlying gRPC status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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