CacuServer

command module
v0.0.0-...-e50a933 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2017 License: MIT Imports: 10 Imported by: 0

README

CacuServer

Documentation

Overview

CacuServer document

CacuServer project main.go

Directories

Path Synopsis
* * 函数格式 ${TIME,exp,fmt} * exp为表达式,如果表达式中出现 day,hour,minute,second 等字段,会被替换成当前时间的对应的数字 * 例如 day - 1,假设当前时间为2017.6.14,那么会替换成 14 - 1,那么最后的时间就是2014.6.13 * fmt 是时间格式化方式 YYYY,MM,DD,HH,mm,ss
* * 函数格式 ${TIME,exp,fmt} * exp为表达式,如果表达式中出现 day,hour,minute,second 等字段,会被替换成当前时间的对应的数字 * 例如 day - 1,假设当前时间为2017.6.14,那么会替换成 14 - 1,那么最后的时间就是2014.6.13 * fmt 是时间格式化方式 YYYY,MM,DD,HH,mm,ss
* * runtime 运行时脚本,需要在调用前传入全局参数 map[string][][]interface{}, * 和结果输出 map[string]interface{},以及当前计算数据位标 i * 该脚本会运行逻辑,并有一定的输出结果会写到 map[string]interface{} 中 * 支持 求和 运算, 正则:${SUM,结果变量名,计算字段 Array[0][i][price],分片字段 Array[0][i][leader]} * * * string 脚本表示,最后直接输出字符串
* * runtime 运行时脚本,需要在调用前传入全局参数 map[string][][]interface{}, * 和结果输出 map[string]interface{},以及当前计算数据位标 i * 该脚本会运行逻辑,并有一定的输出结果会写到 map[string]interface{} 中 * 支持 求和 运算, 正则:${SUM,结果变量名,计算字段 Array[0][i][price],分片字段 Array[0][i][leader]} * * * string 脚本表示,最后直接输出字符串

Jump to

Keyboard shortcuts

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