go/

directory
v2.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2024 License: CC0-1.0

README

phastos - go library

Features

API apps
  • 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
    • img_10.png
  • 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`)
Caches
  • Connect to redis cache with library redigo with configuration by .env
  • interface definition
    • img_5.png
Database / Query Builder
  • Support RDBMS (MySQL + PostgreSQL)
    • support Oracle DB (soon)
  • Connect to database with configuration by .env
  • interface definition
    • Read
      • img_2.png
    • Write
      • img_1.png
    • Table Request struct
      • img_3.png
    • CUDResponse struct
      • img_4.png
  • 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
Upload File to Cloud Storage Services
  • supports GCS + AWS (soon)
  • interface definition
    • img_6.png
  • Upload/Download File direct to/from bucket
  • Upload/Download File to/from bucket by SignedURL (with timeout)
Generator Helper
  • CSV generator
  • Excel Generator
  • PDF Generator (need to download and install library wkhtmltopdf)
  • QR Code generator
  • Banner Image Generator
Importer Helper
  • CSV Import Data Process
  • Excel Import Data Process
Mail Helper
  • Support mandrill + SMTP
  • interface definition
    • Mandrill
      • img_7.png
    • SMTP
      • img_8.png
Auth Middleware Helper
  • Support JWT + static auth
  • store the JWT Claims data to context

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
log
third_party

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL