datatrack

package
v2.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package datatrack is the public API for data tracks.

Index

Constants

View Source
const (
	// SchemaEncodingOther is a well-known encoding not known to this SDK version.
	SchemaEncodingOther      = backend.SchemaEncodingOther
	SchemaEncodingProtobuf   = backend.SchemaEncodingProtobuf
	SchemaEncodingFlatbuffer = backend.SchemaEncodingFlatbuffer
	SchemaEncodingROS1Msg    = backend.SchemaEncodingROS1Msg
	SchemaEncodingROS2Msg    = backend.SchemaEncodingROS2Msg
	SchemaEncodingROS2IDL    = backend.SchemaEncodingROS2IDL
	SchemaEncodingOMGIDL     = backend.SchemaEncodingOMGIDL
	SchemaEncodingJSONSchema = backend.SchemaEncodingJSONSchema
)
View Source
const (
	// FrameEncodingOther is a well-known encoding not known to this SDK version.
	FrameEncodingOther      = backend.FrameEncodingOther
	FrameEncodingROS1       = backend.FrameEncodingROS1
	FrameEncodingCDR        = backend.FrameEncodingCDR
	FrameEncodingProtobuf   = backend.FrameEncodingProtobuf
	FrameEncodingFlatbuffer = backend.FrameEncodingFlatbuffer
	FrameEncodingCBOR       = backend.FrameEncodingCBOR
	FrameEncodingMsgPack    = backend.FrameEncodingMsgPack
	FrameEncodingJSON       = backend.FrameEncodingJSON
)

Variables

View Source
var (
	ErrNotAllowed       = backend.ErrNotAllowed
	ErrDuplicateName    = backend.ErrDuplicateName
	ErrInvalidName      = backend.ErrInvalidName
	ErrLimitReached     = backend.ErrLimitReached
	ErrPublishTimeout   = backend.ErrPublishTimeout
	ErrSubscribeTimeout = backend.ErrSubscribeTimeout
	ErrDisconnected     = backend.ErrDisconnected
	ErrUnpublished      = backend.ErrUnpublished
	ErrQueueFull        = backend.ErrQueueFull

	ErrSchemaMissingFrameEncoding = backend.ErrSchemaMissingFrameEncoding
	ErrSchemaMissingID            = backend.ErrSchemaMissingID
	ErrSchemaIncompatible         = backend.ErrSchemaIncompatible
)

Functions

func UserTimestampNow

func UserTimestampNow() *uint64

UserTimestampNow returns the current Unix time in milliseconds, the interpretation Frame.DurationSinceTimestamp expects.

Types

type CustomFrameEncoding

type CustomFrameEncoding = backend.CustomFrameEncoding

CustomFrameEncoding is an application-defined frame encoding identified by name.

type CustomSchemaEncoding

type CustomSchemaEncoding = backend.CustomSchemaEncoding

CustomSchemaEncoding is an application-defined schema encoding identified by name.

type Frame

type Frame = backend.Frame

Frame is a frame published on a data track.

type FrameEncoding

type FrameEncoding = backend.FrameEncoding

FrameEncoding is the encoding of frames pushed on a data track: a WellKnownFrameEncoding or a CustomFrameEncoding.

type Info

type Info = backend.Info

Info describes a published data track.

type LocalTrack

type LocalTrack = backend.LocalTrack

LocalTrack is a data track published by the local participant.

type PipelineOptions

type PipelineOptions = backend.PipelineOptions

PipelineOptions configure how a remote track's packets are reassembled.

type PublishOption

type PublishOption = backend.PublishOption

PublishOption customizes a publication.

func WithFrameEncoding

func WithFrameEncoding(encoding FrameEncoding) PublishOption

WithFrameEncoding declares the encoding of the track's frames.

func WithSchema

func WithSchema(schema SchemaID) PublishOption

WithSchema associates a schema with the track's frames.

type PublishOptions

type PublishOptions = backend.PublishOptions

PublishOptions describe a data track to publish.

type RemoteTrack

type RemoteTrack = backend.RemoteTrack

RemoteTrack is a data track published by a remote participant.

type SchemaEncoding

type SchemaEncoding = backend.SchemaEncoding

SchemaEncoding is the encoding of a schema definition: a WellKnownSchemaEncoding or a CustomSchemaEncoding.

type SchemaID

type SchemaID = backend.SchemaID

SchemaID identifies a data track schema.

type Stream

type Stream = backend.Stream

Stream delivers the frames of a subscription.

type SubscribeOption

type SubscribeOption = backend.SubscribeOption

SubscribeOption customizes a subscription.

func WithBufferSize

func WithBufferSize(frames int) SubscribeOption

WithBufferSize sets the number of received frames buffered for the subscriber. It has no effect when the track already has an active subscription.

type SubscribeOptions

type SubscribeOptions = backend.SubscribeOptions

SubscribeOptions configure a subscription.

type WellKnownFrameEncoding

type WellKnownFrameEncoding = backend.WellKnownFrameEncoding

WellKnownFrameEncoding is a frame encoding defined by the protocol.

type WellKnownSchemaEncoding

type WellKnownSchemaEncoding = backend.WellKnownSchemaEncoding

WellKnownSchemaEncoding is a schema encoding defined by the protocol.

Jump to

Keyboard shortcuts

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