service

package
v0.0.0-...-e77dc18 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	// contains filtered or unexported fields
}

AuthService is the implementation of our Authentication

func NewAuthService

func NewAuthService(logger hclog.Logger, configs *utils.Configurations) *AuthService

NewAuthService returns a new instance of the auth service

func (*AuthService) Authenticate

func (auth *AuthService) Authenticate(reqUser *data.User, user *data.User) bool

Authenticate checks the user credentials in request against the db and authenticates the request

type Authentication

type Authentication interface {
	Authenticate(reqUser *data.User, user *data.User) bool
}

Authentication interface lists the methods that our authentication service should implement

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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