grpc

package
v0.0.0-...-7b65136 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package grpc provides a gRPC client for the LogService service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeGRPCPingResponse

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

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

func DecodeGRPCSubmitMultipleResponse

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

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

func DecodeGRPCSubmitSingleResponse

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

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

func EncodeGRPCPingRequest

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

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

func EncodeGRPCSubmitMultipleRequest

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

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

func EncodeGRPCSubmitSingleRequest

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

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

func New

func New(conn *grpc.ClientConn, options ...ClientOption) (pb.LogServiceServer, 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