Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCClient ¶
func NewGRPCClient(conn *grpc.ClientConn, logger log.Logger) mathservice2.Service
NewGRPCClient returns an MathService backed by a gRPC server at the other end of the conn. The caller is responsible for constructing the conn, and eventually closing the underlying transport. We bake-in certain middlewares, implementing the client library pattern.
func NewGRPCServer ¶
func NewGRPCServer(endpoints mathendpoint2.Set, logger log.Logger) pb.MathServer
NewGRPCServer makes a set of endpoints available as a gRPC MathServer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.