directory
Version:
v2.26.6
Opens a new window with list of versions in this module.
Published: Nov 27, 2024
License: CC0-1.0
Opens a new window with license information.
README
¶
phastos - go library
Features
- Auto Connect to DB (MySQL | Postgres) and/or redis (redigo) cache*
- Autoload notification platform (telegram | slack)*
- Auto Set CORS configuration**
- Gracefully Shutdown
- Custom HTTP Error
- Support versioning API
- Health-check endpoint (/ping)
- Notification on started/stopped service
- Wrapper handler
- Panic recover
- Binding Resource From Body (Payload) request to struct + Validation
- Auto set timeout 3s**
- Sent notification (telegram | slack) if error 500 is triggered from apps
- Metric to new relic (soon)
- Auto create swagger docs (soon)
notes:
* if the configuration (.env key) is exists
** (configurable by using `.env`)
- Connect to redis cache with library redigo with configuration by
.env
- interface definition
- Support RDBMS (MySQL + PostgreSQL)
- Connect to database with configuration by
.env
- interface definition
- Read
- Write
- Table Request struct
- CUDResponse struct
- Support CRUD operations (Insert, Update, Delete, Get) direct with struct
- Support Batch operations (experimental)
- Support Upsert (Update Insert) Process
- Support Count Process
- Support Soft Delete Process
- Support Pagination
- Support Slow Query Notification
- supports GCS + AWS (soon)
- interface definition
- Upload/Download File direct to/from bucket
- Upload/Download File to/from bucket by SignedURL (with timeout)
- CSV generator
- Excel Generator
- PDF Generator (need to download and install library wkhtmltopdf)
- QR Code generator
- Banner Image Generator
- CSV Import Data Process
- Excel Import Data Process
- Support mandrill + SMTP
- interface definition
- Support JWT + static auth
- store the JWT Claims data to context
Directories
¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
third_party
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.