cli

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2015 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const VERISON = "1.0.0"

Variables

This section is empty.

Functions

func CmdHelp

func CmdHelp(cmd string, subCmd string)

func CreateStream

func CreateStream(cmd string, subCmd string)

create a new stream

func DeleteStream

func DeleteStream(cmd string, subCmd string)

func DisableStream

func DisableStream(cmd string, subCmd string)

func EnableStream

func EnableStream(cmd string, subCmd string)

func GetFlvLiveAddress

func GetFlvLiveAddress(cmd string, subCmd string)

func GetHlsLiveAddress

func GetHlsLiveAddress(cmd string, subCmd string)

func GetHlsPlayAddress

func GetHlsPlayAddress(cmd string, subCmd string)

@param start 20151202102000 @param end

func GetHubInfo

func GetHubInfo(cmd string, subCmd string)

func GetRtmpLiveAddress

func GetRtmpLiveAddress(cmd string, subCmd string)

func GetRtmpPubAddress

func GetRtmpPubAddress(cmd string, subCmd string)

func GetStream

func GetStream(cmd string, subCmd string)

get stream info

func GetStreamStatus

func GetStreamStatus(cmd string, subCmd string)

func Help

func Help()

func Hub

func Hub(subCmd string)

func ListStream

func ListStream(cmd string, subCmd string)

list streams

func RegisterHub

func RegisterHub(cmd string, subCmd string)

func SaveStreamAsVideo

func SaveStreamAsVideo(cmd string, subCmd string)

func Stream

func Stream(subCmd string)

func TakeStreamSnapshot

func TakeStreamSnapshot(cmd string, subCmd string)

func UpdateStream

func UpdateStream(cmd string, subCmd string)

func Version

func Version()

Types

type LiveHub

type LiveHub struct {
	AccessKey string `json:"access_key"`
	SecretKey string `json:"secret_key"`
	Hub       string `json:"hub"`
}

func (*LiveHub) Get

func (this *LiveHub) Get() (err error)

func (*LiveHub) Set

func (this *LiveHub) Set(accessKey string, secretKey string, hub string) (err error)

func (*LiveHub) String

func (this *LiveHub) String() string

func (*LiveHub) ToJson

func (this *LiveHub) ToJson() (jsonStr string, err error)

Jump to

Keyboard shortcuts

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