handlers

package
v0.0.0-...-45d6836 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginHandler

type LoginHandler struct {
	JWTKey        []byte
	RefreshJTWKey []byte
	Log           debug.Logger
}

LoginHandler handles login

func (*LoginHandler) ServeHTTP

func (p *LoginHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)

type PostHandler

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

PostHandler is the handler for /post url

func NewPostHandler

func NewPostHandler(log debug.Logger) *PostHandler

NewPostHandler return a new Post handler

func (*PostHandler) ServeHTTP

func (p *PostHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)

type RefreshHandler

type RefreshHandler struct {
	Log    debug.Logger
	JWTKey []byte
}

RefreshHandler is the handler to refresh access token

func (*RefreshHandler) ServeHTTP

func (u *RefreshHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)

type UserHandler

type UserHandler struct {
	Log debug.Logger
}

UserHandler is the handler for the user route

func (*UserHandler) ServeHTTP

func (u *UserHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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