diff options
| author | Christine Dodrill <me@christine.website> | 2018-10-04 18:04:48 -0700 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2018-10-04 18:04:48 -0700 |
| commit | fbedf4acda9ff659a69fe577465db9617ec94ba1 (patch) | |
| tree | 74c0e72a1380a431813c78eb688b5b93db72800a /irc/kcpd/stdlibsvc/functions | |
| parent | 51b60f36ac286c973dd258571b77db24e9ace031 (diff) | |
| download | x-fbedf4acda9ff659a69fe577465db9617ec94ba1.tar.xz x-fbedf4acda9ff659a69fe577465db9617ec94ba1.zip | |
remove vendored dependencies for some things, vgo is coming
Diffstat (limited to 'irc/kcpd/stdlibsvc/functions')
| -rw-r--r-- | irc/kcpd/stdlibsvc/functions/main/function.json | 15 | ||||
| -rw-r--r-- | irc/kcpd/stdlibsvc/functions/main/index.js | 32 |
2 files changed, 0 insertions, 47 deletions
diff --git a/irc/kcpd/stdlibsvc/functions/main/function.json b/irc/kcpd/stdlibsvc/functions/main/function.json deleted file mode 100644 index 3fa3c9f..0000000 --- a/irc/kcpd/stdlibsvc/functions/main/function.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "main", - "description": "Function", - "args": [ - "First argument", - "Second argument" - ], - "kwargs": { - "alpha": "Keyword argument alpha", - "beta": "Keyword argument beta" - }, - "http": { - "headers": {} - } -}
\ No newline at end of file diff --git a/irc/kcpd/stdlibsvc/functions/main/index.js b/irc/kcpd/stdlibsvc/functions/main/index.js deleted file mode 100644 index a843dd1..0000000 --- a/irc/kcpd/stdlibsvc/functions/main/index.js +++ /dev/null @@ -1,32 +0,0 @@ -/* Import dependencies, declare constants */ - -win = (callback) => { - callback(null, "allowed"); -}; - -fail = (callback) => { - callback("not allowed"); -}; - -/** -* Your function call -* @param {Object} params Execution parameters -* Members -* - {Array} args Arguments passed to function -* - {Object} kwargs Keyword arguments (key-value pairs) passed to function -* - {String} remoteAddress The IPv4 or IPv6 address of the caller -* -* @param {Function} callback Execute this to end the function call -* Arguments -* - {Error} error The error to show if function fails -* - {Any} returnValue JSON serializable (or Buffer) return value -*/ -module.exports = (params, callback) => { - switch (params.kwargs.user) { - case "Xena": - win(callback); - - default: - fail(callback); - } -}; |
