services

package
v0.0.0-...-2ba808a Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashPass

type HashPass interface {
	HashPassword(password string) (string, error)
	VerifyPassword(password, hash string) bool
}

HashPass describes what a hash pass impl is capable of

func NewHashPass

func NewHashPass(salt string) HashPass

type JWT

type JWT interface {
	Encrypt(claims jwt.Claims) (tokenStr string, err error)
	Decrypt(tokenStr string, claims jwt.Claims, skipClaimsValidation bool) error
}

JWT describes what a jwt impl is capable of

func NewJWT

func NewJWT(jwtSecret string) JWT

NewJWT returns JWT instance for encrypt/decrypt jwt tokens

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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