latency

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataType

type DataType int
const (
	Tar DataType = iota
	TarGz
	Gzip
	Snappy
	Raw
	Unsupported
)

type LatencyReader

type LatencyReader interface {
	ConvertFileExtensionToDataType(filename string) DataType
	ReadByType(r io.Reader, dataType DataType) error
}

func NewReader

func NewReader(processor func(ol *OffsetAndLatency) error) (LatencyReader, error)

type LatencyWriter

type LatencyWriter interface {
	Close() error
	Write(p []byte) (n int, err error)
	WriteSimple(offset, latency uint32) (n int, err error)
	WriteOffsetAndLatency(ol OffsetAndLatency) (n int, err error)
}

func NewFileWriter

func NewFileWriter(filename string, compressed bool) (LatencyWriter, error)

func NewWriter

func NewWriter(downstream io.Writer, compressed bool) (LatencyWriter, error)

type OffsetAndLatency

type OffsetAndLatency struct {
	Offset  uint32
	Latency uint32
}

Jump to

Keyboard shortcuts

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