types

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TraceID

type TraceID struct {
	High uint64
	Low  uint64
}

TraceID is a 128 bit number internally stored as 2x uint64 (high & low).

func TraceIDFromHex

func TraceIDFromHex(h string) (t TraceID, err error)

TraceIDFromHex returns the TraceID from a Hex string.

func (TraceID) Empty

func (t TraceID) Empty() bool

Empty returns if TraceID has zero value

func (TraceID) ToHex

func (t TraceID) ToHex() string

ToHex outputs the 128-bit traceID as hex string.

Jump to

Keyboard shortcuts

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