moq

package
v1.20.1-soundar.7 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 44 Imported by: 0

Documentation

Overview

Package moq contains a Media over QUIC server.

Index

Constants

This section is empty.

Variables

View Source
var ErrSessionNotFound = errors.New("session not found")

ErrSessionNotFound is returned when a session is not found.

Functions

This section is empty.

Types

type Server

type Server struct {
	HTTP2Address      string
	HTTP3Address      string
	QUICAddress       string
	ServerKey         string
	ServerCert        string
	AllowOrigins      []string
	UDPReadBufferSize uint
	TrustedProxies    conf.IPNetworks
	ReadTimeout       conf.Duration
	WriteTimeout      conf.Duration
	PathManager       serverPathManager
	Metrics           serverMetrics
	Parent            serverParent
	// contains filtered or unexported fields
}

Server is a Media over QUIC server.

func (*Server) APISessionsGet

func (s *Server) APISessionsGet(id uuid.UUID) (*defs.APIMoQSession, error)

APISessionsGet implements defs.APIMoQServer.

func (*Server) APISessionsKick

func (s *Server) APISessionsKick(id uuid.UUID) error

APISessionsKick implements defs.APIMoQServer.

func (*Server) APISessionsList

func (s *Server) APISessionsList() (*defs.APIMoQSessionList, error)

APISessionsList implements defs.APIMoQServer.

func (*Server) Close

func (s *Server) Close()

Close closes the server.

func (*Server) Initialize

func (s *Server) Initialize() error

Initialize initializes the server.

func (*Server) Log

func (s *Server) Log(level logger.Level, format string, args ...any)

Log implements logger.Writer.

Jump to

Keyboard shortcuts

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