authsql

package
v0.0.0-...-1f6e3fe Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRepo

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

func MakeAuthenticator

func MakeAuthenticator(db *gorm.DB) *AuthRepo

MakeAuthenticator returns a Authenticator sql implementation using gorm

func (*AuthRepo) Login

func (repo *AuthRepo) Login(ctx context.Context, username string, password string) (*auth.User, error)

func (*AuthRepo) Register

func (repo *AuthRepo) Register(ctx context.Context, user *auth.User) error

Jump to

Keyboard shortcuts

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