api

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 17 Imported by: 0 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 api is what is left of the v1 REST API. The SPA and every other first-party caller moved to apiv2 (Protobuf/Connect), and the shared code that used to live here (the worker gRPC, since removed, and voice gRPC, search, live state, section images) moved to pkg/. These routes remain because something that cannot speak apiv2 calls them:

  • POST /api/selfstream/onPublish: the mediamtx ingest server's authHTTPAddress webhook (ingest/mediamtx.yml), asked to approve every RTMP publish.
  • POST /api/token/proxy/:token: rtmp-proxy/publish.sh, which swaps a lecturer's token for the stream key of their next stream.
  • GET /api/stream/live: API users authenticating with an admin token (scripts, monitoring); the token middleware is not part of apiv2.
  • GET /api/schedule.ics: calendar clients subscribed to the lecture hall feed by URL.

The old course calendar URL (/api/download_ics/...) is still answered, but by apiv2: see RegisterLegacyCalendar, wired in cmd/tumlive.

Do not add routes here: new API work belongs in apiv2.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigGinRouter

func ConfigGinRouter(
	router *gin.Engine,
	manager *runner_manager.Manager,
)

ConfigGinRouter registers the remaining v1 routes.

Types

type OnStartReq added in v1.5.7

type OnStartReq struct {
	Ip       string `json:"ip"`
	User     string `json:"user"`
	Password string `json:"password"`
	Path     string `json:"path"`
	Protocol string `json:"protocol"`
	Id       string `json:"id"`
	Action   string `json:"action"`
	Query    string `json:"query"`
}

type SafeStreamStructStream added in v1.5.7

type SafeStreamStructStream struct {
	Ip        string
	StreamKey string
	Slug      string
	Retries   int
}

Jump to

Keyboard shortcuts

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