Documentation
¶
Index ¶
- func Check(e error) error
- func CheckEnvironment(path string) (bool, error)
- func CheckFile(path string) bool
- func ConvertUnixTime(unixTime int64) time.Time
- func CreateFile(path string) bool
- func DeleteFile(path string) bool
- func FileRemove(path string) error
- func GetAllEnvirontment() map[string]string
- func GetEnvirontment(key string) string
- func GetPCurrentPath() string
- func GetResult(worker, jobsName, uuid string) (map[string]interface{}, error)
- func ListTask(pool *work.WorkerPool)
- func LoadEnvirontment(path string) error
- func LogFatal(word string, report interface{})
- func LogInfo(word string, report interface{})
- func MakeDirs(path string) error
- func ParseJSON(data string) (map[string]interface{}, error)
- func ReadFile(path string, perm os.FileMode) string
- func ReadHome() string
- func ReadYML(path string) (scheme.RegisterTask, error)
- func ReadYMLSend(path string) (scheme.SendTask, error)
- func Send(enqName string, jobName string, dataSchema scheme.SendTask) (scheme.SendResponse, error)
- func StartProcess(processName string, concurency uint) *work.WorkerPool
- func WriteFile(path string, value string, perm os.FileMode) bool
- type ContextTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckEnvironment ¶
CheckEnvironment function check default env @path : string return bool, error
func ConvertUnixTime ¶
ConvertUnixTime ... @unixTime: int64
func CreateFile ¶
CreateFile function create file @path : string return bool
func FileRemove ¶
FileRemove Remove Files @path : string return error
func GetAllEnvirontment ¶
GetAllEnvirontment Get value from environtment @key : string
func GetEnvirontment ¶
GetEnvirontment Get value from environtment @key : string
func LoadEnvirontment ¶
LoadEnvirontment load environment config @path : string
func ParseJSON ¶
ParseJSON function conver json string to object @data: string return map[string]interface{}, error
func ReadYML ¶
func ReadYML(path string) (scheme.RegisterTask, error)
ReadYML read YML File return map,error
func ReadYMLSend ¶
ReadYMLSend read YML File return map,error
func StartProcess ¶
func StartProcess(processName string, concurency uint) *work.WorkerPool
StartProcess Start Process Server
Types ¶
type ContextTask ¶
type ContextTask struct { }
ContextTask ...
func (*ContextTask) Log ¶
func (ctx *ContextTask) Log(job *work.Job, next work.NextMiddlewareFunc) error
Log middleware for log job task
func (*ContextTask) TaskRequest ¶
func (ctx *ContextTask) TaskRequest(job *work.Job) error
TaskRequest ...
func (*ContextTask) TaskResponse ¶
func (ctx *ContextTask) TaskResponse(job *work.Job) error
TaskResponse ...