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: 0

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