utils

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandTraceID

func RandTraceID() string

RandTraceID returns random traceID in uuid format.

func SendGracefulStopSignal

func SendGracefulStopSignal() error

func SetTraceID added in v0.7.5

func SetTraceID(ctx context.Context, traceid string) (context.Context, error)

func TraceID added in v0.7.5

func TraceID(ctx context.Context) string

TraceID returns traceid provided by WithTraceField and ContextWithTrace helpers.

func UInt32ToBytes

func UInt32ToBytes(n uint32) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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