db

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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
}

Auth implements Authenticator interface to authenticate user against DB.

func (*Auth) Authenticate

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

Authenticate calls dao to authenticate user.

func (*Auth) OnBoardUser

func (d *Auth) OnBoardUser(u *models.User) error

OnBoardUser -

func (*Auth) SearchUser

func (d *Auth) SearchUser(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