services

package
v0.0.0-...-f5e312f Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// UserService is used to publically acces user service instance
	UserService userServiceInterface = &userService{}
)

Functions

This section is empty.

Types

type JWTService

type JWTService interface {
	GenerateToken(int64, bool) string
	ValidateToken(string) (*jwt.Token, error)
}

JWTService will generate and validate a token to authenticate a user before processing request

func JWTAuthService

func JWTAuthService() JWTService

JWTAuthService is used to generate a public constructor for creating an instance of the service

Jump to

Keyboard shortcuts

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