db

package
Version: v0.0.0-...-0feb2aa Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	auth.DefaultAuthenticateHelper
	// contains filtered or unexported fields
}

Auth implements Authenticator interface to authenticate user against DB.

func (*Auth) Authenticate

func (d *Auth) Authenticate(ctx context.Context, m models.AuthModel) (*models.User, error)

Authenticate calls dao to authenticate user.

func (*Auth) OnBoardUser

func (d *Auth) OnBoardUser(ctx context.Context, u *models.User) error

OnBoardUser -

func (*Auth) SearchUser

func (d *Auth) SearchUser(ctx context.Context, username string) (*models.User, error)

SearchUser - Check if user exist in local db

Source Files

Jump to

Keyboard shortcuts

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