egg-gymbo-acm-client

egg-gymbo-acm-client

Usage no npm install needed!

<script type="module">
  import eggGymboAcmClient from 'https://cdn.skypack.dev/egg-gymbo-acm-client';
</script>

README

egg-gymbo-acm-client

Install

$ npm i egg-gymbo-acm-client --save

Usage

// {app_root}/config/plugin.js
exports.gymboAcmClient = {
  enable: true,
  package: 'egg-gymbo-acm-client',
};

Configuration

// {app_root}/config/config.default.js
exports.gymboAcmClient = {
    url:'http://xxx.xxx.com',
    interval:'10s'
};

Example

ctx.helper.gymboAcmGetConfig(key)
ctx.helper.gymboAcmGetLatestConfig(key)
ctx.helper.gymboAcmGetAllConfig()
ctx.helper.gymboAcmGetAllLatestConfig()
ctx.helper.gymboAcmDelConfig(key)
ctx.helper.gymboAcmSetConfig(key,content)