tracesegment

package
v3.0.1+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Format  string `json:"format"`
	Version int    `json:"version"`
}

Header stores header of trace segment.

func (Header) IsValid

func (t Header) IsValid() bool

IsValid validates Header.

type TraceSegment

type TraceSegment struct {
	Raw     *[]byte
	PoolBuf *[]byte
}

TraceSegment stores raw segment.

func GetTestTraceSegment

func GetTestTraceSegment() TraceSegment

GetTestTraceSegment returns new instance of TraceSegment used for testing.

func (*TraceSegment) Deflate

func (r *TraceSegment) Deflate() []byte

Deflate converts TraceSegment to bytes

Jump to

Keyboard shortcuts

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