README ¶ phastos - go library Features API apps Caches Database / Query Builder Upload File to Cloud Storage Services Generator Helper Importer Helper Mail Helper Auth Middleware Helper 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 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 Database / Query Builder Support RDBMS (MySQL + PostgreSQL) support Oracle DB (soon) 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 Upload File to Cloud Storage Services supports GCS + AWS (soon) interface definition 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 SMTP Auth Middleware Helper Support JWT + static auth store the JWT Claims data to context Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis api binding cache common context cron database action mocks Package mock_database is a generated GoMock package. Package mock_database is a generated GoMock package. entity slack env error generator helper image importer mail middlewares monitoring notifications slack telegram null response server storage third_party slack slack/handler Click to show internal directories. Click to hide internal directories.