db

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App of package

func New

func New(db *sql.DB) App

New creates new App from dependencies

func (App) IsAuthorized

func (a App) IsAuthorized(user model.User, profile string) bool

IsAuthorized checks if User is authorized

func (App) Login

func (a App) Login(login, password string) (model.User, error)

Login user with its credentials

Jump to

Keyboard shortcuts

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