transportgrpc

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Please, do not change functions names!

It is better for you if you do not change functions names! This file will never be overwritten.

DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentToProto

func CommentToProto(comment service.Comment) (pb.Comment, error)

func ListCommentToProto

func ListCommentToProto(list []service.Comment) ([]pb.Comment, error)

func MapStringUserToProto

func MapStringUserToProto(results map[string]service.User) (map[string]pb.User, error)

func NewGRPCClient

func NewGRPCClient(conn *grpc.ClientConn, addr string, opts ...grpckit.ClientOption) transport.EndpointsSet

func NewGRPCServer

func NewGRPCServer(endpoints *transport.EndpointsSet, logger log.Logger, tracer opentracinggo.Tracer, opts ...grpc.ServerOption) pb.UserServiceServer

func ProtoToComment

func ProtoToComment(protoComment pb.Comment) (service.Comment, error)

func ProtoToListComment

func ProtoToListComment(protoList []pb.Comment) ([]service.Comment, error)

func ProtoToMapStringUser

func ProtoToMapStringUser(protoResults map[string]pb.User) (map[string]service.User, error)

func ProtoToUser

func ProtoToUser(protoUser pb.User) (service.User, error)

func TracingGRPCClientOptions

func TracingGRPCClientOptions(tracer opentracinggo.Tracer, logger log.Logger) func([]grpckit.ClientOption) []grpckit.ClientOption

func UserToProto

func UserToProto(user service.User) (pb.User, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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