pathmanager

package
v0.0.0-...-882a99e Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthManager

type AuthManager interface {
	Authenticate(req *auth.Request) error
}

type HLSServer

type HLSServer interface {
	PathReady(defs.Path)
	PathNotReady(defs.Path)
}

type Parent

type Parent interface {
	logger.Writer
}

type PathManager

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

func New

func New(
	logLevel conf.LogLevel,
	authManager AuthManager,
	rtspAddress string,
	readTimeout conf.StringDuration,
	writeTimeout conf.StringDuration,
	writeQueueSize int,
	udpMaxPayloadSize int,
	pathConfs map[string]*conf.Path,
	externalCmdPool *externalcmd.Pool,
	parent Parent,
) *PathManager

func (*PathManager) APIPathsGet

func (pm *PathManager) APIPathsGet(name string) (*defs.APIPath, error)

APIPathsGet is called by api.

func (*PathManager) APIPathsList

func (pm *PathManager) APIPathsList() (*defs.APIPathList, error)

APIPathsList is called by api.

func (*PathManager) AddPublisher

func (pm *PathManager) AddPublisher(req defs.PathAddPublisherReq) (defs.Path, error)

AddPublisher is called by a publisher.

func (*PathManager) AddReader

func (pm *PathManager) AddReader(req defs.PathAddReaderReq) (defs.Path, *stream.Stream, error)

AddReader is called by a reader.

func (*PathManager) Close

func (pm *PathManager) Close()

func (*PathManager) Describe

Describe is called by a reader or publisher.

func (*PathManager) FindPathConf

func (pm *PathManager) FindPathConf(req defs.PathFindPathConfReq) (*conf.Path, error)

GetConfForPath is called by a reader or publisher.

func (*PathManager) Initialize

func (pm *PathManager) Initialize(ctx context.Context)

func (*PathManager) Log

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

Log implements logger.Writer.

func (*PathManager) ReloadPathConfs

func (pm *PathManager) ReloadPathConfs(pathConfs map[string]*conf.Path)

ReloadPathConfs is called by core.

func (*PathManager) SetHLSServer

func (pm *PathManager) SetHLSServer(s HLSServer)

SetHLSServer is called by hlsManager.

Jump to

Keyboard shortcuts

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