grpc

package
v0.0.0-...-309529d Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package grpc provides a gRPC client for the Users service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeGRPCSayHelloResponse

func DecodeGRPCSayHelloResponse(_ context.Context, grpcReply interface{}) (interface{}, error)

DecodeGRPCSayHelloResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC sayhello reply to a user-domain sayhello response. Primarily useful in a client.

func EncodeGRPCSayHelloRequest

func EncodeGRPCSayHelloRequest(_ context.Context, request interface{}) (interface{}, error)

EncodeGRPCSayHelloRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain sayhello request to a gRPC sayhello request. Primarily useful in a client.

func New

func New(conn *grpc.ClientConn, options ...ClientOption) (pb.UsersServer, error)

New returns an service backed by a gRPC client connection. It is the responsibility of the caller to dial, and later close, the connection.

Types

type ClientOption

type ClientOption func(*clientConfig) error

ClientOption is a function that modifies the client config

func CtxValuesToSend

func CtxValuesToSend(keys ...string) ClientOption

Jump to

Keyboard shortcuts

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