jwt

package module
v0.0.0-...-1a15228 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 10 Imported by: 0

README

Restful Microservice in Golang

This is my first attempt to make a simple restful microservice in go.

Installation

This project requires Golang Package to run.

Deployment

The containerized application is deployed on google cloud run

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClaims

func GetClaims(r *http.Request) *map[string]string

func GetLogger

func GetLogger(r *http.Request) *log.Logger

func GetToken

func GetToken(payload map[string]string) string

Types

type Server

type Server struct {
	Port           string
	Log            *log.Logger
	Secret         string
	Expiry         int64
	Refresh_secret string
	Refresh_expiry int64
}

func (*Server) HandleServerStop

func (s *Server) HandleServerStop()

func (*Server) Initialize

func (s *Server) Initialize() *mux.Router

func (*Server) Start

func (s *Server) Start() chan os.Signal

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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