Skip to content

rus-sharafiev/go-rest-common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Common services for the REST service

The module includes the following packages:

  • db

    PostgreSQL instance, instance creator and custom methods (based on the pgx driver)

  • exception

    a set of functions that write JSON encoded errors to http.ResponseWriter

  • formdata

    Middleware that saves files and "restore" JSON (requires custom FormData converter on frontend)

  • jwt

    Generates and validates JWT (based on jwt-go)

  • mail

    Some basic functions to send a mail using net/smtp

  • spa

    http.Handler for serving SPA and static files

  • uploads

    http.Handler for serving uploads protected by access token.

About

Common services for the REST service

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages