program

package
v0.0.0-...-e786f2c Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PlayStatusPlay 播放
	PlayStatusPlay = "play"
	// PlayStatusStop 停止
	PlayStatusStop = "stop"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Program

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

Program 程序实体

func New

func New() (*Program, error)

New 创建程序实例

func (*Program) Heartbeat

func (p *Program) Heartbeat()

Heartbeat 心跳

func (*Program) Push

func (p *Program) Push()

Push 推流

func (*Program) PushByCh

func (p *Program) PushByCh()

PushByCh 根据消息推流

func (*Program) Run

func (p *Program) Run()

Run 启动程序

func (*Program) Stop

func (p *Program) Stop()

Stop 程序结束要做的事

func (*Program) StopPush

func (p *Program) StopPush()

StopPush 停止推流

func (*Program) UploadTask

func (p *Program) UploadTask()

UploadTask 定时任务

Jump to

Keyboard shortcuts

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