handler

package
v0.0.0-...-8064ebf Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Health

func Health(w http.ResponseWriter, _ *http.Request)

func NewTwitterHandler

func NewTwitterHandler(session *scs.SessionManager) *twitterHandler

Types

type CallbackRequest

type CallbackRequest struct {
	Code  string
	State int
}

type FacebookCallbackRequest

type FacebookCallbackRequest struct {
	Code  string
	State int
}

type FacebookHandler

type FacebookHandler struct {
}

func (*FacebookHandler) AuthRedirect

func (h *FacebookHandler) AuthRedirect(w http.ResponseWriter, r *http.Request)

func (*FacebookHandler) Callback

func (h *FacebookHandler) Callback(w http.ResponseWriter, r *http.Request)

type GitHubHandler

type GitHubHandler struct {
}

func (*GitHubHandler) AuthRedirect

func (h *GitHubHandler) AuthRedirect(w http.ResponseWriter, r *http.Request)

func (*GitHubHandler) Callback

func (h *GitHubHandler) Callback(w http.ResponseWriter, r *http.Request)

type GoogleCallbackRequest

type GoogleCallbackRequest struct {
	Code  string
	State string
}

type GoogleHandler

type GoogleHandler struct {
}

func (*GoogleHandler) AuthRedirect

func (h *GoogleHandler) AuthRedirect(w http.ResponseWriter, r *http.Request)

func (*GoogleHandler) Callback

func (h *GoogleHandler) Callback(w http.ResponseWriter, r *http.Request)

type SignHandler

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

func NewSignHandler

func NewSignHandler(session *scs.SessionManager, r model.UserRepository) SignHandler

func (*SignHandler) SignIn

func (h *SignHandler) SignIn(w http.ResponseWriter, r *http.Request)

func (*SignHandler) SignUp

func (h *SignHandler) SignUp(w http.ResponseWriter, r *http.Request)

type SignIn

type SignIn struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type SignUp

type SignUp struct {
	Email    string `json:"email"    validate:"required,email"`
	Password string `json:"password" validate:"min=8,max=100"`
}

type TwitterCallbackRequest

type TwitterCallbackRequest struct {
	Token    string
	Verifier string
}

Jump to

Keyboard shortcuts

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