handler

package
v0.0.0-...-0046f9d Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler handles all http function.

func New

func New() *Handler

New returns new handler.

func (Handler) Auth

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

Auth authenticates user and returns access and refresh token.

func (*Handler) Disconnect

func (h *Handler) Disconnect()

Disconnect Disconnects.

func (Handler) Register

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

Register adds user into db and returns access and refresh token.

func (Handler) Verify

func (h Handler) Verify(w http.ResponseWriter, r *http.Request)

Verify verifies code and activates account.

Jump to

Keyboard shortcuts

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