pathman

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parent

type Parent interface {
	Log(logger.Level, string, ...interface{})
}

Parent is implemented by program.

type PathManager

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

PathManager is a path.Path manager.

func New

func New(
	rtspPort int,
	readTimeout time.Duration,
	writeTimeout time.Duration,
	readBufferCount int,
	readBufferSize int,
	authMethods []headers.AuthMethod,
	pathConfs map[string]*conf.PathConf,
	stats *stats.Stats,
	parent Parent) *PathManager

New allocates a PathManager.

func (*PathManager) ClientClose

func (pm *PathManager) ClientClose() chan client.Client

ClientClose is called by clientman.ClientMan.

func (*PathManager) Close

func (pm *PathManager) Close()

Close closes a PathManager.

func (*PathManager) Log

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

Log is the main logging function.

func (*PathManager) OnClientAnnounce

func (pm *PathManager) OnClientAnnounce(req client.AnnounceReq)

OnClientAnnounce is called by clientman.ClientMan.

func (*PathManager) OnClientDescribe

func (pm *PathManager) OnClientDescribe(req client.DescribeReq)

OnClientDescribe is called by clientman.ClientMan.

func (*PathManager) OnClientSetupPlay

func (pm *PathManager) OnClientSetupPlay(req client.SetupPlayReq)

OnClientSetupPlay is called by clientman.ClientMan.

func (*PathManager) OnPathClientClose

func (pm *PathManager) OnPathClientClose(c client.Client)

OnPathClientClose is called by path.Path.

func (*PathManager) OnPathClose

func (pm *PathManager) OnPathClose(pa *path.Path)

OnPathClose is called by path.Path.

func (*PathManager) OnProgramConfReload

func (pm *PathManager) OnProgramConfReload(pathConfs map[string]*conf.PathConf)

OnProgramConfReload is called by program.

Jump to

Keyboard shortcuts

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