Help us shape the future of Go! Take the 2026 Go Developer Survey

datatrack

package
v1.13.4 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRawDataPackets

func GenerateRawDataPackets(handle uint16, seqNum uint16, frameNum uint16, numFrames int, frameSize int, frameDuration time.Duration) [][]byte

Types

type Extension

type Extension struct {
	// contains filtered or unexported fields
}

type ExtensionParticipantSid

type ExtensionParticipantSid struct {
	// contains filtered or unexported fields
}

func NewExtensionParticipantSid

func NewExtensionParticipantSid(participantID livekit.ParticipantID) (*ExtensionParticipantSid, error)

func (*ExtensionParticipantSid) Marshal

func (e *ExtensionParticipantSid) Marshal() (Extension, error)

func (*ExtensionParticipantSid) ParticipantID

func (e *ExtensionParticipantSid) ParticipantID() livekit.ParticipantID

func (*ExtensionParticipantSid) Unmarshal

func (e *ExtensionParticipantSid) Unmarshal(ext Extension) error
type Header struct {
	Version        uint8
	IsStartOfFrame bool
	IsFinalOfFrame bool
	HasExtensions  bool
	Handle         uint16
	SequenceNumber uint16
	FrameNumber    uint16
	Timestamp      uint32
	ExtensionsSize uint16
	Extensions     []Extension
}

func (*Header) AddExtension

func (h *Header) AddExtension(ext Extension)

func (*Header) GetExtension

func (h *Header) GetExtension(id uint8) (Extension, error)

func (*Header) MarshalSize

func (h *Header) MarshalSize() int

func (*Header) MarshalTo

func (h *Header) MarshalTo(buf []byte) (int, error)

func (*Header) Unmarshal

func (h *Header) Unmarshal(buf []byte) (int, error)

type Packet

type Packet struct {
	Header
	Payload []byte
}

func (*Packet) Marshal

func (p *Packet) Marshal() ([]byte, error)

func (*Packet) MarshalTo

func (p *Packet) MarshalTo(buf []byte) error

func (*Packet) Unmarshal

func (p *Packet) Unmarshal(buf []byte) error

Jump to

Keyboard shortcuts

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