Documentation ¶
Index ¶
- Variables
- func NewGrpcClientOptions(tracer *zipkin.Tracer, name string, logger log.Logger) []transportgrpc.ClientOption
- func NewGrpcServerOptions(tracer *zipkin.Tracer, name string, logger log.Logger) []transportgrpc.ServerOption
- func NewHttpServerOptions(tracer *zipkin.Tracer, name string, logger log.Logger) []transporthttp.ServerOption
- func NewLogger(servicename string) log.Logger
- func NewZipkinTracer(serviceName, hostPort, zipkinhttpurl string, logger log.Logger) (*zipkin.Tracer, error)
- func NoDecodeRequestFunc(ctx context.Context, i interface{}) (request interface{}, err error)
- func NoDecodeResponseFunc(ctx context.Context, i interface{}) (response interface{}, err error)
- func NoEncodeRequestFunc(ctx context.Context, i interface{}) (request interface{}, err error)
- func NoEncodeResponseFunc(ctx context.Context, i interface{}) (response interface{}, err error)
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 NewZipkinTracer ¶
func NoDecodeRequestFunc ¶
func NoDecodeResponseFunc ¶
func NoEncodeRequestFunc ¶
func NoEncodeResponseFunc ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.