Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
LoadedConfig interface{}
}
Config 对象
func (*Config) LoadConfig ¶
LoadConfig 载入配置文件函数 confPath string 为config配置文件的路径和文件名 v *interface{} 可以是一个结构体
func (*Config) WriteConfig ¶
WriteConfig 将结构体转换成json,在写入path路径这种指定文件
type Logger ¶
type Logger struct { Format string LogPath string Filename string // contains filtered or unexported fields }
Logger 对象
func (*Logger) CreateLogger ¶
CreateLogger 创建日志对象
func (*Logger) ErrorOutput ¶
func (logger *Logger) ErrorOutput(msg interface{})
ErrorOutput 错误输出到文件 msg 为字符串类型的错误信息
func (*Logger) InfoOutput ¶
func (logger *Logger) InfoOutput(msg interface{})
InfoOutput 输出普通信息到文件 msg 为字符串类型的文本信息
type TaskSchedObject ¶
TaskSchedObject object
func NewTaskSchedObjct ¶
func NewTaskSchedObjct() *TaskSchedObject
NewTaskSchedObjct 创建TaskSchedObject
func (*TaskSchedObject) CreateTask ¶
func (ts *TaskSchedObject) CreateTask(taskName string, execPath string, startTime string) (string, string, error)
CreateTask 创建任务计划
Click to show internal directories.
Click to hide internal directories.