Soraa-Go

module
v0.0.0-...-8bdb74e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT

README

Sora Go

SDK Boilerplate for restful api

Installation

go get github.com/StephanieAgatha/Soraa-Go

Copy whole .env.example and create a new .env
Paseto & JWT expire token (Hour Format) ex :
jsonToken := paseto.JSONToken{
		Issuer:     "Sora Project",
		Subject:    "Abrakadabra",
		Expiration: expire,
		IssuedAt:   now,
	}

Got em Middleware

Dummy endpoint (middleware protected)
  POST /new 
Description
Required. Paseto / JWT Token
Stack
  • Gin
  • JWT
  • Paseto
  • Zap (Logging)
  • Redis (Caching)

Directories

Path Synopsis
util

Jump to

Keyboard shortcuts

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