Documentation ¶
Index ¶
- func GenSlice[T any](n int, fac func(int) T) []T
- func New(c cesium.Channel, fac DataFactory, start cesium.TimeStamp, ...) cesium.Segment
- func NewSet(c cesium.Channel, fac DataFactory, start cesium.TimeStamp, ...) []cesium.Segment
- type DataFactory
- type MultiSequentialFactory
- type RandomFloat64Factory
- type SequentialFactory
- type SequentialFloat64Factory
- type StreamCreate
- type StreamRetrieve
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataFactory ¶
func DataTypeFactory ¶
func DataTypeFactory(dt cesium.Density) DataFactory
type MultiSequentialFactory ¶
type MultiSequentialFactory struct {
// contains filtered or unexported fields
}
func (*MultiSequentialFactory) Next ¶
func (m *MultiSequentialFactory) Next() (s []cesium.Segment)
type RandomFloat64Factory ¶
type RandomFloat64Factory struct { Cache bool // contains filtered or unexported fields }
func (*RandomFloat64Factory) Generate ¶
func (s *RandomFloat64Factory) Generate(n int) []byte
type SequentialFactory ¶
func NewSequentialFactory ¶
func NewSequentialFactory(fac DataFactory, span cesium.TimeSpan, c ...cesium.Channel) SequentialFactory
type SequentialFloat64Factory ¶
type SequentialFloat64Factory struct { Cache bool // contains filtered or unexported fields }
func (*SequentialFloat64Factory) Generate ¶
func (s *SequentialFloat64Factory) Generate(n int) []byte
type StreamCreate ¶
type StreamCreate struct { SequentialFactory Req chan<- cesium.CreateRequest Res <-chan cesium.CreateResponse }
func (*StreamCreate) CloseAndWait ¶
func (sc *StreamCreate) CloseAndWait() error
func (*StreamCreate) Create ¶
func (sc *StreamCreate) Create() cesium.CreateRequest
func (*StreamCreate) CreateCRequestsOfN ¶
func (sc *StreamCreate) CreateCRequestsOfN(c, n int) []cesium.CreateRequest
func (*StreamCreate) CreateN ¶
func (sc *StreamCreate) CreateN(n int) cesium.CreateRequest
type StreamRetrieve ¶
type StreamRetrieve struct {
Res <-chan cesium.RetrieveResponse
}
func (StreamRetrieve) All ¶
func (sr StreamRetrieve) All() []cesium.Segment
Click to show internal directories.
Click to hide internal directories.