tracefile

package
v0.0.0-...-dc4a015 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Names    = []string{`log.trace`, `net_http.trace`, `sync_atomic.trace`}
	Versions = [...]event.Version{
		event.Version1,
		event.Version2,
		event.Version3,
		event.Version4,
	}
)

Vars are internal and should not procuce a lint warning.

Functions

This section is empty.

Types

type Trace

type Trace struct {
	Version event.Version
	Size    int
	Path    string
	Name    string
	Data    []byte
}

Trace is internal and should not procuce a lint warning.

func NewTrace

func NewTrace(ver event.Version, path string) (*Trace, error)

NewTrace is internal and should not procuce a lint warning.

func (Trace) Bytes

func (tf Trace) Bytes() []byte

Bytes is internal and should not procuce a lint warning.

type TraceList

type TraceList []*Trace

TraceList is internal and should not procuce a lint warning.

func Load

func Load(root string) (out TraceList, err error)

Load will load the trace files from the testdata dir.

func (TraceList) ByMaxSize

func (s TraceList) ByMaxSize(n int) (out TraceList)

ByMaxSize is internal and should not procuce a lint warning.

func (TraceList) ByName

func (s TraceList) ByName(name string) (out TraceList)

ByName is internal and should not procuce a lint warning.

func (TraceList) ByVersion

func (s TraceList) ByVersion(ver event.Version) (out TraceList)

ByVersion is internal and should not procuce a lint warning.

func (TraceList) String

func (s TraceList) String() string

String is internal and should not procuce a lint warning.

Jump to

Keyboard shortcuts

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