db

package
v0.0.0-...-29bd094 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 32

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(_ context.Context, _ *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

Jump to

Keyboard shortcuts

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