common

package module
v0.0.0-...-141b790 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 4 Imported by: 4

README

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.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config config

Functions

func LoadConf

func LoadConf()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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