Documentation ¶
Index ¶
- Constants
- Variables
- func CreateJwtToken(name string, dcId int) (string, error)
- func GetLogger() *zap.Logger
- func JaegerClientMiddleware(tracer opentracing.Tracer) grpc.UnaryClientInterceptor
- func JaegerServerMiddleware(tracer opentracing.Tracer) grpc.UnaryServerInterceptor
- func NewJaegerTracer(serviceName string) (tracer opentracing.Tracer, closer io.Closer, err error)
- func NewLoggerServer()
- func ParseToken(token string) (jwt.MapClaims, error)
- type Hystrix
- type LogErrorHandler
- type MDReaderWriter
- type Token
Constants ¶
View Source
const ContextReqUUid = "req_uuid"
View Source
const JWT_CONTEXT_KEY = "jwt_context_key"
Variables ¶
View Source
var (
TracingComponentTag = opentracing.Tag{Key: string(ext.Component), Value: "grpc"}
)
Functions ¶
func JaegerClientMiddleware ¶
func JaegerClientMiddleware(tracer opentracing.Tracer) grpc.UnaryClientInterceptor
func JaegerServerMiddleware ¶
func JaegerServerMiddleware(tracer opentracing.Tracer) grpc.UnaryServerInterceptor
func NewJaegerTracer ¶
func NewLoggerServer ¶
func NewLoggerServer()
func ParseToken ¶
Types ¶
type LogErrorHandler ¶
type LogErrorHandler struct {
// contains filtered or unexported fields
}
func NewZapLogErrorHandler ¶
func NewZapLogErrorHandler(logger *zap.Logger) *LogErrorHandler
type MDReaderWriter ¶
func (MDReaderWriter) ForeachKey ¶
func (c MDReaderWriter) ForeachKey(handler func(key, val string) error) error
func (MDReaderWriter) Set ¶
func (c MDReaderWriter) Set(key, val string)
Click to show internal directories.
Click to hide internal directories.