jsonV1

package
v0.0.0-...-bdb06d8 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IDFromString

func IDFromString(s string) (string, error)

IDFromString validates the ID and returns it in hexadecimal format.

func TraceIDFromString

func TraceIDFromString(s string) (string, error)

TraceIDFromString creates a TraceID from a hexadecimal string

Types

type JSON

type JSON struct{}

JSON decodes spans from bodies `POST`ed to the spans endpoint

func (*JSON) Decode

func (j *JSON) Decode(octets []byte) ([]codec.Span, error)

Decode unmarshals and validates the JSON body

Jump to

Keyboard shortcuts

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