Documentation ¶
Index ¶
- func InitWorker(mediasoupVersion string) (*workerchannel.Channel, *workerchannel.PayloadChannel, error)
- func NewWorkerBase(pid int) *workerBase
- type MediasoupWorker
- func (w MediasoupWorker) FillJson() json.RawMessage
- func (w MediasoupWorker) FillJsonResourceUsage() json.RawMessage
- func (w MediasoupWorker) GetPid() int
- func (w MediasoupWorker) OnChannelRequest(request workerchannel.RequestData) (response workerchannel.ResponseData)
- func (w *MediasoupWorker) Start() int
- func (w MediasoupWorker) Stop()
- type SimpleWorker
- func (w SimpleWorker) FillJson() json.RawMessage
- func (w SimpleWorker) FillJsonResourceUsage() json.RawMessage
- func (w SimpleWorker) GetPid() int
- func (w SimpleWorker) OnChannelRequest(request workerchannel.RequestData) (response workerchannel.ResponseData)
- func (w *SimpleWorker) Start() int
- func (w SimpleWorker) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitWorker ¶ added in v1.0.6
func InitWorker(mediasoupVersion string) (*workerchannel.Channel, *workerchannel.PayloadChannel, error)
func NewWorkerBase ¶ added in v1.0.6
func NewWorkerBase(pid int) *workerBase
Types ¶
type MediasoupWorker ¶
type MediasoupWorker struct {
// contains filtered or unexported fields
}
func NewMediasoupWorker ¶
func NewMediasoupWorker(channel *workerchannel.Channel, payloadChannel *workerchannel.PayloadChannel) *MediasoupWorker
func (MediasoupWorker) FillJson ¶
func (w MediasoupWorker) FillJson() json.RawMessage
func (MediasoupWorker) FillJsonResourceUsage ¶
func (w MediasoupWorker) FillJsonResourceUsage() json.RawMessage
func (MediasoupWorker) OnChannelRequest ¶
func (w MediasoupWorker) OnChannelRequest(request workerchannel.RequestData) (response workerchannel.ResponseData)
func (*MediasoupWorker) Start ¶
func (w *MediasoupWorker) Start() int
type SimpleWorker ¶
type SimpleWorker struct {
// contains filtered or unexported fields
}
func NewSimpleWorker ¶
func NewSimpleWorker() *SimpleWorker
func (SimpleWorker) FillJson ¶
func (w SimpleWorker) FillJson() json.RawMessage
func (SimpleWorker) FillJsonResourceUsage ¶
func (w SimpleWorker) FillJsonResourceUsage() json.RawMessage
func (SimpleWorker) OnChannelRequest ¶
func (w SimpleWorker) OnChannelRequest(request workerchannel.RequestData) (response workerchannel.ResponseData)
func (*SimpleWorker) Start ¶
func (w *SimpleWorker) Start() int
Click to show internal directories.
Click to hide internal directories.