Documentation ¶
Index ¶
- func MakeGRPCServer(endpoints endpoints.Endpoints, otTracer stdopentracing.Tracer, ...) (req pb.TodoServer)
- func ModelReqToPB(todo *model.TodoReq) *pb.ModelTodoReq
- func ModelResToPB(todo *model.TodoRes) *pb.ModelTodoRes
- func NewGRPCClient(conn *grpc.ClientConn, otTracer stdopentracing.Tracer, ...) service.TodoService
- func PBtoModelReq(todo *pb.ModelTodoReq) *model.TodoReq
- func PBtoModelRes(todo *pb.ModelTodoRes) *model.TodoRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeGRPCServer ¶
func MakeGRPCServer(endpoints endpoints.Endpoints, otTracer stdopentracing.Tracer, zipkinTracer *stdzipkin.Tracer, logger log.Logger) (req pb.TodoServer)
MakeGRPCServer makes a set of endpoints available as a gRPC server.
func ModelReqToPB ¶
func ModelReqToPB(todo *model.TodoReq) *pb.ModelTodoReq
func ModelResToPB ¶
func ModelResToPB(todo *model.TodoRes) *pb.ModelTodoRes
func NewGRPCClient ¶
func NewGRPCClient(conn *grpc.ClientConn, otTracer stdopentracing.Tracer, zipkinTracer *stdzipkin.Tracer, logger log.Logger) service.TodoService
NewGRPCClient returns an AddService 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 PBtoModelReq ¶
func PBtoModelReq(todo *pb.ModelTodoReq) *model.TodoReq
func PBtoModelRes ¶
func PBtoModelRes(todo *pb.ModelTodoRes) *model.TodoRes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.