types

package
Version: v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL