grpc

package
v0.0.0-...-e2cbee1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeGRPCFooRequest

func DecodeGRPCFooRequest(_ context.Context, grpcReq interface{}) (req interface{}, err error)

DecodeGRPCFooRequest is a transport/grpc.DecodeRequestFunc that converts a gRPC request to a user-domain request. Primarily useful in a server. TODO: Do not forget to implement the decoder, you can find an example here : https://github.com/go-kit/kit/blob/master/examples/addsvc/transport_grpc.go#L62-L65

func EncodeGRPCFooResponse

func EncodeGRPCFooResponse(_ context.Context, grpcReply interface{}) (res interface{}, err error)

EncodeGRPCFooResponse is a transport/grpc.EncodeResponseFunc that converts a user-domain response to a gRPC reply. Primarily useful in a server. TODO: Do not forget to implement the encoder, you can find an example here : https://github.com/go-kit/kit/blob/master/examples/addsvc/transport_grpc.go#L62-L65

func MakeGRPCServer

func MakeGRPCServer(endpoints endpoints.Endpoints) (req pb.TestGrpcServer)

MakeGRPCServer makes a set of endpoints available as a gRPC server.

Types

This section is empty.

Directories

Path Synopsis
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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