httphandler

package
v0.0.0-...-a59a69c Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

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

func NewAuthHandler

func NewAuthHandler(authInteractor interactor.AuthenticationInteractor,
	storage *mongodb.Storage) *AuthHandler

func (*AuthHandler) Authentication

func (ah *AuthHandler) Authentication() http.HandlerFunc

Authentication is a handler for http POST - "/authentication" return HTTP ok if token valid and HTTP 400 if not valid

func (*AuthHandler) GetLiveness

func (ah *AuthHandler) GetLiveness() http.HandlerFunc

func (*AuthHandler) GetReadiness

func (ah *AuthHandler) GetReadiness() http.HandlerFunc

func (*AuthHandler) Login

func (ah *AuthHandler) Login() http.HandlerFunc

Login is a handler for http POST - "/login" return auth token with refresh token

type UserResource

type UserResource struct {
	Data model.User `json:"data"`
}

For Post/Put - /users

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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