transportgrpc

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 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 ListIntToProto

func ListIntToProto(positions []int) ([]int64, error)

func ListPtrCommentToProto

func ListPtrCommentToProto(comments []*service.Comment) ([]*pb.Comment, error)

func MapStringIntToProto

func MapStringIntToProto(tree map[string]int) (map[string]int64, error)

func MapStringStringToProto

func MapStringStringToProto(stringsMap map[string]string) (map[string]string, 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.StringServiceServer

func ProtoToListInt

func ProtoToListInt(protoPositions []int64) ([]int, error)

func ProtoToListPtrComment

func ProtoToListPtrComment(protoComments []*pb.Comment) ([]*service.Comment, error)

func ProtoToMapStringInt

func ProtoToMapStringInt(protoTree map[string]int64) (map[string]int, error)

func ProtoToMapStringString

func ProtoToMapStringString(protoStringsMap map[string]string) (map[string]string, error)

func TracingGRPCClientOptions

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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