auth

package
v0.0.0-...-1f543be Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

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

func Register

func Register(w http.ResponseWriter, r *http.Request)

Types

type Token

type Token struct {
	Token string `json:"token"`
}

type User

type User struct {
	Login string `json:"login"`
	Pass  string `json:"pass"`
}

Jump to

Keyboard shortcuts

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