Documentation ¶
Index ¶
- func InitOBSManager()
- type ChildOBSConfig
- type OBSManager
- func (mgr *OBSManager) CreateOBS(name, dbUser, dbPassword string, port int) error
- func (mgr *OBSManager) DeleteOBS(name string) error
- func (mgr *OBSManager) ListProcess() (map[string]string, error)
- func (mgr *OBSManager) ListProcessWithPorts() (map[string]string, error)
- func (mgr *OBSManager) StartOBS(name string) error
- func (mgr *OBSManager) StopOBS(name string) error
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
Click to show internal directories.
Click to hide internal directories.