logic

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 10 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLogic = errors.New("lal.logic: fxxk")
View Source
var Trans trans

Functions

This section is empty.

Types

type Config

type Config struct {
	RTMP    RTMP       `json:"rtmp"`
	HTTPFLV HTTPFLV    `json:"httpflv"`
	Log     log.Option `json:"log"`
	PProf   PProf      `json:"pprof"`
}

func LoadConf

func LoadConf(confFile string) (*Config, error)

type Group

type Group struct {
	UniqueKey string
	// contains filtered or unexported fields
}

func NewGroup

func NewGroup(appName string, streamName string) *Group

func (*Group) AddHTTPFLVSubSession added in v0.4.0

func (group *Group) AddHTTPFLVSubSession(session *httpflv.SubSession)

func (*Group) AddRTMPPubSession

func (group *Group) AddRTMPPubSession(session *rtmp.ServerSession) bool

func (*Group) AddRTMPSubSession

func (group *Group) AddRTMPSubSession(session *rtmp.ServerSession)

func (*Group) DelHTTPFLVSubSession added in v0.4.0

func (group *Group) DelHTTPFLVSubSession(session *httpflv.SubSession)

func (*Group) DelRTMPPubSession

func (group *Group) DelRTMPPubSession(session *rtmp.ServerSession)

func (*Group) DelRTMPSubSession

func (group *Group) DelRTMPSubSession(session *rtmp.ServerSession)

func (*Group) Dispose

func (group *Group) Dispose()

func (*Group) IsInExist

func (group *Group) IsInExist() bool

func (*Group) IsTotalEmpty

func (group *Group) IsTotalEmpty() bool

func (*Group) OnReadRTMPAVMsg added in v0.5.0

func (group *Group) OnReadRTMPAVMsg(msg rtmp.AVMsg)

PubSession or PullSession

func (*Group) RunLoop

func (group *Group) RunLoop()

type HTTPFLV added in v0.4.0

type HTTPFLV struct {
	SubListenAddr string `json:"sub_listen_addr"`
}

type PProf

type PProf struct {
	Addr string `json:"addr"`
}

type RTMP

type RTMP struct {
	Addr string `json:"addr"`
}

type ServerManager

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

func NewServerManager

func NewServerManager(config *Config) *ServerManager

func (*ServerManager) DelHTTPFLVSubSessionCB added in v0.4.0

func (sm *ServerManager) DelHTTPFLVSubSessionCB(session *httpflv.SubSession)

ServerObserver of httpflv.Server

func (*ServerManager) DelRTMPPubSessionCB

func (sm *ServerManager) DelRTMPPubSessionCB(session *rtmp.ServerSession)

ServerObserver of rtmp.Server

func (*ServerManager) DelRTMPSubSessionCB

func (sm *ServerManager) DelRTMPSubSessionCB(session *rtmp.ServerSession)

ServerObserver of rtmp.Server

func (*ServerManager) Dispose

func (sm *ServerManager) Dispose()

func (*ServerManager) NewHTTPFLVSubSessionCB added in v0.4.0

func (sm *ServerManager) NewHTTPFLVSubSessionCB(session *httpflv.SubSession) bool

ServerObserver of httpflv.Server

func (*ServerManager) NewRTMPPubSessionCB

func (sm *ServerManager) NewRTMPPubSessionCB(session *rtmp.ServerSession) bool

ServerObserver of rtmp.Server

func (*ServerManager) NewRTMPSubSessionCB

func (sm *ServerManager) NewRTMPSubSessionCB(session *rtmp.ServerSession) bool

ServerObserver of rtmp.Server

func (*ServerManager) RunLoop

func (sm *ServerManager) RunLoop()

Jump to

Keyboard shortcuts

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