Documentation ¶
Index ¶
- type AuthController
- type PointController
- func (p *PointController) AddHandler(w http.ResponseWriter, r *http.Request)
- func (p *PointController) GetMyPoints(w http.ResponseWriter, r *http.Request)
- func (p *PointController) GetPointsHandler(w http.ResponseWriter, r *http.Request)
- func (p *PointController) RateHandler(w http.ResponseWriter, r *http.Request)
- func (p *PointController) UploadPhoto(w http.ResponseWriter, r *http.Request)
- type UserController
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 NewPointController ¶
func NewPointController(points repository.PointRepository, photos repository.PhotoRepository, ratings repository.RatingRepository) *PointController
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)
Click to show internal directories.
Click to hide internal directories.