kk_grpc

package
v0.0.0-...-6c1fc53 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TimeoutDur = 10 * time.Second

Variables

This section is empty.

Functions

func GetTraceIdFromGrpcCtx

func GetTraceIdFromGrpcCtx(ctx context.Context) (traceId string)

GetTraceIdFromGrpcCtx get traceId from metadata set by

metadata.AppendToOutgoingContext() or metadata.NewOutgoingContext()

func NewCallGrpcCtx

func NewCallGrpcCtx(stage *kk_stage.Stage) (ctx context.Context, cancelFunc context.CancelFunc)

func NewGrpcStage

func NewGrpcStage(tracerCtx context.Context, serviceName string, debugMode bool) (stage *kk_stage.Stage)

Types

This section is empty.

Jump to

Keyboard shortcuts

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