Documentation ¶
Index ¶
- Constants
- func DeleteAllLogFiles() error
- func DeleteLogFile(filename string) error
- func EntryListToIniString(config *model.Configuration) string
- func GetConfigPath(config *model.Configuration) string
- func GetEntryListPath(config *model.Configuration) string
- func GetInstanceLog(filename string) (string, error)
- func GetServerCfgPath(config *model.Configuration) string
- func ServerConfigToIniString(config *model.Configuration) string
- func StartInstance(instanceName string, configuration int64, scriptBefore, scriptAfter string) error
- func StopInstance(pid int) error
- func ZipConfiguration(config *model.Configuration, w http.ResponseWriter) error
- func ZipInstanceFiles(config *model.Configuration, w http.ResponseWriter) error
- func ZipLogFile(fileName string, w http.ResponseWriter) error
- type Instance
- type Log
Constants ¶
View Source
const ( ServerIni = "server_cfg.ini" EntryListIni = "entry_list.ini" )
Variables ¶
This section is empty.
Functions ¶
func EntryListToIniString ¶
func EntryListToIniString(config *model.Configuration) string
func GetConfigPath ¶
func GetConfigPath(config *model.Configuration) string
func GetEntryListPath ¶
func GetEntryListPath(config *model.Configuration) string
func GetServerCfgPath ¶
func GetServerCfgPath(config *model.Configuration) string
func ServerConfigToIniString ¶
func ServerConfigToIniString(config *model.Configuration) string
func StartInstance ¶
func ZipConfiguration ¶
func ZipConfiguration(config *model.Configuration, w http.ResponseWriter) error
ZipConfiguration creates zip stream with config into and write it into a http.ResponseWriter
func ZipInstanceFiles ¶
func ZipInstanceFiles(config *model.Configuration, w http.ResponseWriter) error
ZipInstanceFiles creates zip stream with current instance and write it into a http.ResponseWriter
func ZipLogFile ¶
func ZipLogFile(fileName string, w http.ResponseWriter) error
ZipLogFile creates zip stream with a given log file and write it into a http.ResponseWriter
Types ¶
Click to show internal directories.
Click to hide internal directories.