viva-app
v2.0.17
Published
<dl> <dt><a href="#App">App</a></dt> <dd></dd> </dl>
Downloads
18
Readme
Classes
Typedefs
App
Kind: global class
- App
- .app_instance : type_app_instance
- .ini : lib_setting
- .need_stop : boolean
- .logger : lib_logger
- .sql : lib_sql
- .go(params, callback)
- .action(key, params, callback)
- .action_generate_class(params) ⇒ string
- .setting_internal_find(rid) ⇒ string
- .setting_find(rid) ⇒ string
- .setting_add(settings, [callback])
- .setting_mssql_setting_load_ui([callback])
- .setting_mssql_sense_load_ui(rid, [callback])
- .trusted_app_find(access_key, callback)
- .trusted_app_add(access_name, [access_key], [expire_min], [callback])
- .trusted_person_find(access_key, callback)
- .trusted_person_find_in_other_app(access_key, other_app_name, callback)
- .trusted_person_add(access_name, [access_key], [expire_min], [device], [callback])
- .task_add(task, [callback])
- .log_get(params, callback)
- .action_get(params, callback)
- .action_save(action_list, internal, callback)
- .timeout_life(timeout_min)
app.app_instance : type_app_instance
Kind: instance property of App
app.ini : lib_setting
Kind: instance property of App
app.need_stop : boolean
Kind: instance property of App
app.logger : lib_logger
Kind: instance property of App
app.sql : lib_sql
Kind: instance property of App
app.go(params, callback)
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | params | type_app_go | | | callback | function | error |
app.action(key, params, callback)
exec action
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | key | string | uniq key of action | | params | any | | | callback | lib_sql.callback_action | |
app.action_generate_class(params) ⇒ string
generate file with exec actions
Kind: instance method of App
| Param | Type | | --- | --- | | params | lib_sql.type_generate_class_with_exec_actions |
app.setting_internal_find(rid) ⇒ string
get setting value
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | rid | 'app.pulse' | 'app.pulse_memory' | 'app.pulse_memory.life' | 'app.log' | 'app.log.life' | 'app.setting' | 'app.action' | 'app.task' | 'app.http_host' | 'app.action.password' | 'app.setting.password' | 'app.pulse.password' | 'app.log.password' | 'app.trusted_app' | 'app.trusted_app.password' | 'app.trusted_app.life' | 'app.trusted_person.password' | 'app.trusted_person.life' | setting key |
app.setting_find(rid) ⇒ string
get setting value
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | rid | string | setting key |
app.setting_add(settings, [callback])
get setting value
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | settings | Array.<subsystem_ini.type_add> | setting key | | [callback] | function | without param |
app.setting_mssql_setting_load_ui([callback])
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | [callback] | function | (error, result) |
app.setting_mssql_sense_load_ui(rid, [callback])
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | rid | string | | | [callback] | function | (error, result) |
app.trusted_app_find(access_key, callback)
check trusted app
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | access_key | string | | | callback | function | access_key |
app.trusted_app_add(access_name, [access_key], [expire_min], [callback])
add trusted app
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | access_name | string | | | [access_key] | string | | | [expire_min] | number | | | [callback] | function | access_key |
app.trusted_person_find(access_key, callback)
check trusted person
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | access_key | string | | | callback | function | (result = trusted_person) |
app.trusted_person_find_in_other_app(access_key, other_app_name, callback)
check trusted person
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | access_key | string | | | other_app_name | string | | | callback | function | (result = trusted_person) |
app.trusted_person_add(access_name, [access_key], [expire_min], [device], [callback])
add trusted person
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | access_name | string | | | [access_key] | string | | | [expire_min] | number | | | [device] | string | | | [callback] | function | (access_key) |
app.task_add(task, [callback])
check trusted app
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | task | subsystem_tsk.type_task | | | [callback] | function | (result = task_rid) |
app.log_get(params, callback)
get all app log list
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | params | subsystem_log.type_get | | | callback | function | (result - app_list, log_list, eav_rid_list) |
app.action_get(params, callback)
get all app action list
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | params | type_action_get | | | callback | callback_action_get | (result - app_list, action_list) |
app.action_save(action_list, internal, callback)
save app action list
Kind: instance method of App
| Param | Type | Description | | --- | --- | --- | | action_list | Array.<lib_sql.type_action> | | | internal | Boolean | | | callback | function | (error) |
app.timeout_life(timeout_min)
Kind: instance method of App
| Param | Type | | --- | --- | | timeout_min | number |
type_app_instance
Kind: global typedef
Properties
| Name | Type | | --- | --- | | name | string | | similar | number | | version | string | | filename | string | | load_setting_ldm | Date | | load_action_ldm | Date | | load_trusted_app_ldm | Date | | action_key_list_external | Array.<string> | | mssql_connection_setting | subsystem_ini.type_mssql_connection | | mssql_connection_log | subsystem_ini.type_mssql_connection | | mssql_connection_action | subsystem_ini.type_mssql_connection | | mssql_connection_trusted | subsystem_ini.type_mssql_connection | | mssql_connection_task | subsystem_ini.type_mssql_connection | | mssql_setting_list_OBSOLETE | Array.<subsystem_ini.type_mssql_setting> | | setting_list | Array.<subsystem_ini.type_setting> | | trusted_app_list | Array.<subsystem_trt.type_trusted_app> | | trusted_person_list | Array.<subsystem_trt.type_trusted_person> |
type_action_get
Kind: global typedef
Properties
| Name | Type | | --- | --- | | [allow_app] | boolean |
callback_action_get : function
Kind: global typedef
| Param | Type | | --- | --- | | app_list | Array.<string> | | action_list | Array.<lib_sql.type_action> |