svr

package
v0.0.0-...-201036b Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MsgSvrAddress = "localhost:9988"
View Source
var MsgSvrName = "msgsvr"
View Source
var UserSvrAddress = "localhost:9977"
View Source
var UserSvrName = "usersvr"
View Source
var Zipkinhttpurl = "http://192.168.3.125:9411/api/v2/spans"

var Zipkinhttpurl = "http://localhost:9411/api/v2/spans"

Functions

func NewGrpcClientOptions

func NewGrpcClientOptions(tracer *zipkin.Tracer, name string, logger log.Logger) []transportgrpc.ClientOption

func NewGrpcServerOptions

func NewGrpcServerOptions(tracer *zipkin.Tracer, name string, logger log.Logger) []transportgrpc.ServerOption

func NewHttpServerOptions

func NewHttpServerOptions(tracer *zipkin.Tracer, name string, logger log.Logger) []transporthttp.ServerOption

func NewLogger

func NewLogger(servicename string) log.Logger

func NewZipkinTracer

func NewZipkinTracer(serviceName, hostPort, zipkinhttpurl string, logger log.Logger) (*zipkin.Tracer, error)

func NoDecodeRequestFunc

func NoDecodeRequestFunc(ctx context.Context, i interface{}) (request interface{}, err error)

func NoDecodeResponseFunc

func NoDecodeResponseFunc(ctx context.Context, i interface{}) (response interface{}, err error)

func NoEncodeRequestFunc

func NoEncodeRequestFunc(ctx context.Context, i interface{}) (request interface{}, err error)

func NoEncodeResponseFunc

func NoEncodeResponseFunc(ctx context.Context, i interface{}) (response interface{}, err error)

Types

This section is empty.

Directories

Path Synopsis
msg
biz
cmd
biz
cmd

Jump to

Keyboard shortcuts

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