api

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package api contains the API server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Address      string
	ReadTimeout  conf.StringDuration
	Conf         *conf.Conf
	PathManager  PathManager
	RTSPServer   RTSPServer
	RTSPSServer  RTSPServer
	RTMPServer   RTMPServer
	RTMPSServer  RTMPServer
	HLSServer    HLSServer
	WebRTCServer WebRTCServer
	SRTServer    SRTServer
	Parent       apiParent
	// contains filtered or unexported fields
}

API is an API server.

func (*API) Close

func (a *API) Close()

Close closes the API.

func (*API) Initialize

func (a *API) Initialize() error

Initialize initializes API.

func (*API) Log

func (a *API) Log(level logger.Level, format string, args ...interface{})

Log implements logger.Writer.

func (*API) ReloadConf

func (a *API) ReloadConf(conf *conf.Conf)

ReloadConf is called by core.

type HLSServer

type HLSServer interface {
	APIMuxersList() (*defs.APIHLSMuxerList, error)
	APIMuxersGet(string) (*defs.APIHLSMuxer, error)
}

HLSServer contains methods used by the API and Metrics server.

type PathManager

type PathManager interface {
	APIPathsList() (*defs.APIPathList, error)
	APIPathsGet(string) (*defs.APIPath, error)
}

PathManager contains methods used by the API and Metrics server.

type RTMPServer

type RTMPServer interface {
	APIConnsList() (*defs.APIRTMPConnList, error)
	APIConnsGet(uuid.UUID) (*defs.APIRTMPConn, error)
	APIConnsKick(uuid.UUID) error
}

RTMPServer contains methods used by the API and Metrics server.

type RTSPServer

type RTSPServer interface {
	APIConnsList() (*defs.APIRTSPConnsList, error)
	APIConnsGet(uuid.UUID) (*defs.APIRTSPConn, error)
	APISessionsList() (*defs.APIRTSPSessionList, error)
	APISessionsGet(uuid.UUID) (*defs.APIRTSPSession, error)
	APISessionsKick(uuid.UUID) error
}

RTSPServer contains methods used by the API and Metrics server.

type SRTServer

type SRTServer interface {
	APIConnsList() (*defs.APISRTConnList, error)
	APIConnsGet(uuid.UUID) (*defs.APISRTConn, error)
	APIConnsKick(uuid.UUID) error
}

SRTServer contains methods used by the API and Metrics server.

type WebRTCServer

type WebRTCServer interface {
	APISessionsList() (*defs.APIWebRTCSessionList, error)
	APISessionsGet(uuid.UUID) (*defs.APIWebRTCSession, error)
	APISessionsKick(uuid.UUID) error
}

WebRTCServer contains methods used by the API and Metrics server.

Jump to

Keyboard shortcuts

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