controller

package
v0.0.0-...-8cce31a Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

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

func NewAuthController

func NewAuthController(users repository.UserRepository, jwtAlgo jwt.Algorithm) *AuthController

func (*AuthController) AuthenticateHandler

func (a *AuthController) AuthenticateHandler(w http.ResponseWriter, r *http.Request)

func (*AuthController) AuthenticationMiddleware

func (a *AuthController) AuthenticationMiddleware(h http.Handler) http.Handler

func (*AuthController) RefreshToken

func (a *AuthController) RefreshToken(w http.ResponseWriter, r *http.Request)

type PointController

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

func (*PointController) AddHandler

func (p *PointController) AddHandler(w http.ResponseWriter, r *http.Request)

func (*PointController) GetMyPoints

func (p *PointController) GetMyPoints(w http.ResponseWriter, r *http.Request)

func (*PointController) GetPointsHandler

func (p *PointController) GetPointsHandler(w http.ResponseWriter, r *http.Request)

func (*PointController) RateHandler

func (p *PointController) RateHandler(w http.ResponseWriter, r *http.Request)

func (*PointController) UploadPhoto

func (p *PointController) UploadPhoto(w http.ResponseWriter, r *http.Request)

type UserController

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

func NewUserController

func NewUserController(users repository.UserRepository) *UserController

func (*UserController) CreateHandler

func (u *UserController) CreateHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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