https://github.com/reddec/integration-lib
A modular library for integration cases
https://github.com/reddec/integration-lib
Last synced: 11 months ago
JSON representation
A modular library for integration cases
- Host: GitHub
- URL: https://github.com/reddec/integration-lib
- Owner: reddec
- License: mit
- Created: 2020-06-10T06:20:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T06:53:32.000Z (about 6 years ago)
- Last Synced: 2025-07-14T19:29:11.047Z (12 months ago)
- Language: Go
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: support/context.go
Awesome Lists containing this project
README
# Integration lib
It aims to be a modular library for integration.
There is no strict limitation what to include or not.
Currently, includes (see [docs](https://godoc.org/github.com/reddec/integration-lib)):
- cloud
- google sheets
- communication
- email
- telegram
- finance
- exchange rates (fiat and crypto)
- tinkoff investing
# Style guide
## Plain functions
- Should have docs
- Docs should contain API provider(s) if applicable
- Should have context and context-less (optional) version if uses external services
- Errors should be wrapped and tagged
## Structured
In addition to plain function
- Configuration structure should not contain state
- Should have default constructor that fills parameters from [environment](https://github.com/caarlos0/env)
- Environment variables should have prefix, related to the provider (package)
- Configuration structure could be used as container for functions if functions are not modifying state
- It's ok to panic in default constructor