auth

package
v0.0.0-...-b00a9e6 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidCredentialsErr = "Invalid credentials"

InvalidCredentialsErr error message used when credentials are wrong

Variables

This section is empty.

Functions

This section is empty.

Types

type SqliteUserRepository

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

SqliteUserRepository implements UserRepository using sqlite.

func NewSqliteUserRepository

func NewSqliteUserRepository() (*SqliteUserRepository, error)

NewSqliteUserRepository returns SqliteUserRepository instance.

func (*SqliteUserRepository) Close

func (ur *SqliteUserRepository) Close() error

func (*SqliteUserRepository) ValidateCredentials

func (ur *SqliteUserRepository) ValidateCredentials(user string, hash string) error

ValidateCredentials validates user credentials using sqlite database.

type UserRepository

type UserRepository interface {
	ValidateCredentials(user string, hash string) error
}

UserRepository interface defines methods for checking user credentials.

Jump to

Keyboard shortcuts

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