auth

package
v0.0.0-...-3a27eef Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: GPL-3.0 Imports: 9 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 {
	// contains filtered or unexported fields
}

Auth struct

func New

func New(db *sql.DB, auth auth.Auth) *Auth

New Auth controller may throw panic when one of parameter is nil-pointer

func (*Auth) Login

func (a *Auth) Login(w http.ResponseWriter, r *http.Request)

Login - take a token

func (*Auth) Register

func (a *Auth) Register(r *mux.Router)

Register controller handlers

func (*Auth) Registration

func (a *Auth) Registration(w http.ResponseWriter, r *http.Request)

Registration - create new user on this great system

Jump to

Keyboard shortcuts

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