obsmanager

package
v0.0.0-...-8e17a21 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitOBSManager

func InitOBSManager()

Types

type ChildOBSConfig

type ChildOBSConfig struct {
	Executable     string
	Name           string
	Directory      string
	DBUser         string
	DBPassword     string
	ConfigFileName string
	LogTo          string
	LogLevel       string
	HTTPPort       int
}

ChildOBSConfig struct to manage child entry

type OBSManager

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

OBSManager struct

var (
	Manager *OBSManager
)

func (*OBSManager) CreateOBS

func (mgr *OBSManager) CreateOBS(name, dbUser, dbPassword string, port int) error

CreateOBS creates one instance of OBS

func (*OBSManager) DeleteOBS

func (mgr *OBSManager) DeleteOBS(name string) error

DeleteOBS stop OBS process and remove OBS folder

func (*OBSManager) ListProcess

func (mgr *OBSManager) ListProcess() (map[string]string, error)

ListProcess returns list of process names with state of process

func (*OBSManager) ListProcessWithPorts

func (mgr *OBSManager) ListProcessWithPorts() (map[string]string, error)

func (*OBSManager) StartOBS

func (mgr *OBSManager) StartOBS(name string) error

StartOBS find process and then start him

func (*OBSManager) StopOBS

func (mgr *OBSManager) StopOBS(name string) error

StopOBS find process with definded name and then stop him

Jump to

Keyboard shortcuts

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