Documentation ¶
Index ¶
- Constants
- Variables
- func AutoConfig(args ...ice.Any) *ice.Action
- func HashAction(args ...ice.Any) ice.Actions
- func HashActionStatus(args ...ice.Any) ice.Actions
- func HashCreate(m *ice.Message, arg ...ice.Any) *ice.Message
- func HashPrunes(m *ice.Message, cb func(ice.Maps) bool) *ice.Message
- func HashRemove(m *ice.Message, arg ...ice.Any) *ice.Message
- func HashSelect(m *ice.Message, arg ...string) *ice.Message
- func ListAction(args ...ice.Any) ice.Actions
- func ListSelect(m *ice.Message, arg ...string) *ice.Message
- func NextPage(m *ice.Message, total string, arg ...string)
- func NextPageLimit(m *ice.Message, total string, arg ...string)
- func PrevPage(m *ice.Message, total string, arg ...string)
- func PrevPageLimit(m *ice.Message, total string, arg ...string)
- func ZoneAction(args ...ice.Any) ice.Actions
- func ZoneSelect(m *ice.Message, arg ...string) *ice.Message
- func ZoneSelectAll(m *ice.Message, arg ...string) *ice.Message
- func ZoneSelectCB(m *ice.Message, zone string, cb ice.Any) *ice.Message
Constants ¶
View Source
const ( CSV = "csv" JSON = "json" )
View Source
const ( DICT = kit.MDB_DICT META = kit.MDB_META UNIQ = kit.MDB_UNIQ FOREACH = kit.MDB_FOREACH RANDOMS = kit.MDB_RANDOMS )
View Source
const ( // 数据 ID = kit.MDB_ID KEY = kit.MDB_KEY TIME = kit.MDB_TIME // ZONE = kit.MDB_ZONE TYPE = kit.MDB_TYPE NAME = kit.MDB_NAME TEXT = kit.MDB_TEXT // 文件 LINK = kit.MDB_LINK SCAN = kit.MDB_SCAN SHOW = kit.MDB_SHOW HELP = kit.MDB_HELP DATA = kit.MDB_DATA FILE = kit.MDB_FILE // 存储 SHORT = kit.MDB_SHORT FIELD = kit.MDB_FIELD TOTAL = kit.MDB_TOTAL COUNT = kit.MDB_COUNT LIMIT = kit.MDB_LIMIT LEAST = kit.MDB_LEAST STORE = kit.MDB_STORE FSIZE = kit.MDB_FSIZE // 索引 INDEX = kit.MDB_INDEX VALUE = kit.MDB_VALUE EXTRA = kit.MDB_EXTRA ALIAS = kit.MDB_ALIAS EXPIRE = kit.MDB_EXPIRE STATUS = kit.MDB_STATUS STREAM = kit.MDB_STREAM )
View Source
const ( DETAIL = "detail" RANDOM = "random" CREATE = "create" REMOVE = "remove" INSERT = "insert" DELETE = "delete" MODIFY = "modify" SELECT = "select" INPUTS = "inputs" PRUNES = "prunes" EXPORT = "export" IMPORT = "import" UPLOAD = "upload" REVERT = "revert" REPEAT = "repeat" NEXT = "next" PREV = "prev" PAGE = "page" OFFEND = "offend" )
View Source
const (
CACHE_CLEAR_ON_EXIT = "cache.clear.on.exit"
)
View Source
const ENGINE = "engine"
View Source
const HASH = "hash"
View Source
const LIST = "list"
View Source
const MDB = "mdb"
View Source
const PLUGIN = "plugin"
View Source
const RENDER = "render"
View Source
const SEARCH = "search"
View Source
const ZONE = "zone"
Variables ¶
View Source
var Index = &ice.Context{Name: MDB, Help: "数据模块", Commands: ice.Commands{ ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) {}}, ice.CTX_EXIT: {Hand: func(m *ice.Message, arg ...string) {}}, INSERT: {Name: "insert key sub type arg...", Help: "添加", Hand: func(m *ice.Message, arg ...string) { switch arg[2] { case ZONE: _list_insert(m, arg[0], _domain_chain(m, kit.Keys(arg[1], kit.KeyHash(arg[3]))), arg[4:]...) case HASH: _hash_insert(m, arg[0], _domain_chain(m, arg[1]), arg[3:]...) case LIST: _list_insert(m, arg[0], _domain_chain(m, arg[1]), arg[3:]...) } m.ProcessRefresh3ms() }}, DELETE: {Name: "delete key sub type field value", Help: "删除", Hand: func(m *ice.Message, arg ...string) { switch arg[2] { case ZONE: _list_delete(m, arg[0], _domain_chain(m, kit.Keys(arg[1], kit.KeyHash(arg[3]))), arg[4], arg[5]) case HASH: _hash_delete(m, arg[0], _domain_chain(m, arg[1]), arg[3], arg[4]) case LIST: _list_delete(m, arg[0], _domain_chain(m, arg[1]), arg[3], arg[4]) } m.ProcessRefresh3ms() }}, MODIFY: {Name: "modify key sub type field value arg...", Help: "编辑", Hand: func(m *ice.Message, arg ...string) { switch arg[2] { case ZONE: _list_modify(m, arg[0], _domain_chain(m, kit.Keys(arg[1], kit.KeyHash(arg[3]))), ID, arg[4], arg[5:]...) case HASH: _hash_modify(m, arg[0], _domain_chain(m, arg[1]), arg[3], arg[4], arg[5:]...) case LIST: _list_modify(m, arg[0], _domain_chain(m, arg[1]), arg[3], arg[4], arg[5:]...) } }}, SELECT: {Name: "select key sub type field value", Help: "查询", Hand: func(m *ice.Message, arg ...string) { switch arg[2] { case ZONE: _zone_select(m, arg[0], _domain_chain(m, arg[1]), kit.Select("", arg, 3), kit.Select("", arg, 4)) case HASH: _hash_select(m, arg[0], _domain_chain(m, arg[1]), kit.Select("", arg, 3), kit.Select(FOREACH, arg, 4)) case LIST: _list_select(m, arg[0], _domain_chain(m, arg[1]), kit.Select("", arg, 3), kit.Select("", arg, 4)) } }}, INPUTS: {Name: "inputs key sub type field value", Help: "补全", Hand: func(m *ice.Message, arg ...string) { switch arg[2] { case ZONE: _list_inputs(m, arg[0], _domain_chain(m, kit.Keys(arg[1], kit.KeyHash(arg[3]))), kit.Select(NAME, arg, 4), kit.Select("", arg, 5)) case HASH: _hash_inputs(m, arg[0], _domain_chain(m, arg[1]), kit.Select(NAME, arg, 3), kit.Select("", arg, 4)) case LIST: _list_inputs(m, arg[0], _domain_chain(m, arg[1]), kit.Select(NAME, arg, 3), kit.Select("", arg, 4)) } }}, PRUNES: {Name: "prunes key sub type [field value]...", Help: "清理", Hand: func(m *ice.Message, arg ...string) { switch arg[2] { case ZONE: _list_prunes(m, arg[0], _domain_chain(m, kit.Keys(arg[1], kit.KeyHash(arg[3]))), arg[4:]...) case HASH: _hash_prunes(m, arg[0], _domain_chain(m, arg[1]), arg[3:]...) case LIST: _list_prunes(m, arg[0], _domain_chain(m, arg[1]), arg[3:]...) } }}, EXPORT: {Name: "export key sub type file", Help: "导出", Hand: func(m *ice.Message, arg ...string) { if m.Option(ice.CACHE_LIMIT) == "" { m.Option(ice.CACHE_LIMIT, "-1") } switch file := _file_name(m, arg...); arg[2] { case ZONE: _zone_export(m, arg[0], _domain_chain(m, arg[1]), file) case HASH: _hash_export(m, arg[0], _domain_chain(m, arg[1]), file) case LIST: _list_export(m, arg[0], _domain_chain(m, arg[1]), file) } }}, IMPORT: {Name: "import key sub type file", Help: "导入", Hand: func(m *ice.Message, arg ...string) { switch file := _file_name(m, arg...); arg[2] { case ZONE: _zone_import(m, arg[0], _domain_chain(m, arg[1]), file) case HASH: _hash_import(m, arg[0], _domain_chain(m, arg[1]), file) case LIST: _list_import(m, arg[0], _domain_chain(m, arg[1]), file) } }}, }}
Functions ¶
func HashPrunes ¶ added in v0.6.4
func NextPageLimit ¶ added in v0.5.0
func PrevPageLimit ¶ added in v0.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.