https://github.com/viveksyngh/openfaas-luhn
Luhn Algorithm as open faas function (https://en.wikipedia.org/wiki/Luhn_algorithm)
https://github.com/viveksyngh/openfaas-luhn
golang luhn-algorithm openfaas serverless
Last synced: 8 months ago
JSON representation
Luhn Algorithm as open faas function (https://en.wikipedia.org/wiki/Luhn_algorithm)
- Host: GitHub
- URL: https://github.com/viveksyngh/openfaas-luhn
- Owner: viveksyngh
- Created: 2017-12-15T08:07:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-30T11:48:10.000Z (about 8 years ago)
- Last Synced: 2025-02-26T12:05:21.533Z (over 1 year ago)
- Topics: golang, luhn-algorithm, openfaas, serverless
- Language: Go
- Size: 210 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# openfaas-luhn
Luhn Algorithm as open faas function (https://en.wikipedia.org/wiki/Luhn_algorithm).
Luhn Algorithm is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers, National Provider Identifier numbers in the United States, Canadian Social Insurance Numbers, Israel ID Numbers and Greek Social Security Numbers (ΑΜΚΑ).
# Test commit
### Usage
Deploy:
```bash
$ faas-cli deploy -f ./luhn.yml --gateway=http://
```
Invoke:
```bash
$ echo -n '4539 1488 0343 6467' | faas-cli invoke luhn --gateway=
```
### Example

