testutil

package
v0.0.0-...-a6f45d6 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFloat64Segment

func NewFloat64Segment(cpk cesium.ChannelKey, factory func(n int)) cesium.Segment

func RandFloat64Slice

func RandFloat64Slice(n int) []float64

func RandomFloat64Bytes

func RandomFloat64Bytes(n int) []byte

func RandomFloat64Segment

func RandomFloat64Segment(n int) []byte

func WriteFloat64Slice

func WriteFloat64Slice(s []float64) (*bytes.Buffer, error)

Types

type Device

type Device struct {
	Ctx           context.Context
	DB            cesium.DB
	DataType      cesium.Density
	DataRate      cesium.DataRate
	FlushInterval cesium.TimeSpan
	// contains filtered or unexported fields
}

func (*Device) Start

func (d *Device) Start() error

func (*Device) Stop

func (d *Device) Stop() error

type DeviceFactory

type DeviceFactory struct {
	Ctx context.Context
	DB  cesium.DB
}

func (DeviceFactory) New

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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