logging

package
v0.0.0-...-5765f96 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(format Format, level slog.Level, writer io.Writer)

Types

type Format

type Format string
const (
	TextFormat Format = "text"
	JSONFormat Format = "json"
)

type RTPLogger

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

func NewRTPLogger

func NewRTPLogger(vantagePoint string, logger *slog.Logger) *RTPLogger

func (*RTPLogger) LogRTCPPackets

func (l *RTPLogger) LogRTCPPackets([]rtcp.Packet, interceptor.Attributes)

func (*RTPLogger) LogRTPPacket

func (l *RTPLogger) LogRTPPacket(header *rtp.Header, payload []byte, _ interceptor.Attributes)

func (*RTPLogger) LogRTPPacketBuf

func (l *RTPLogger) LogRTPPacketBuf(rtpBuf []byte, ia interceptor.Attributes)

type Unwrapper

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

Unwrapper stores an unwrapped sequence number.

func (*Unwrapper) Unwrap

func (u *Unwrapper) Unwrap(i uint16) int64

Unwrap unwraps the next sequencenumber.

Jump to

Keyboard shortcuts

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