controllersLogin

package
v0.0.0-...-a74fbde Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: MIT Imports: 4 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 {
	controllers.BaseController
}

AuthController 認証コントローラ

func (*AuthController) Post

func (c *AuthController) Post()

Post ログイン中か判定する

type AuthResponse

type AuthResponse struct {
	Login bool   `json:"login"`
	Name  string `json:"name"`
}

AuthResponse 認証レスポンス

type CallbackController

type CallbackController struct {
	controllers.BaseController
}

CallbackController コールバックコントローラ

func (*CallbackController) Get

func (c *CallbackController) Get()

Get コールバック

type CheckController

type CheckController struct {
	controllers.BaseController
}

CheckController 登録確認コントローラ

func (*CheckController) Post

func (c *CheckController) Post()

Post ログイン

type CheckRequest

type CheckRequest struct {
	Email    string `form:"email"`
	Password string `form:"password"`
}

CheckRequest 確認リクエスト

type LogoutController

type LogoutController struct {
	controllers.BaseController
}

LogoutController ログアウトコントローラ

func (*LogoutController) Post

func (c *LogoutController) Post()

Post ログアウト

type NewController

type NewController struct {
	controllers.BaseController
}

NewController 新規登録コントローラ

func (*NewController) Post

func (c *NewController) Post()

Post 新規ログイン

type NewRequest

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

NewRequest 新規リクエスト

type NewResponse

type NewResponse struct {
	Warning bool   `json:"warning"`
	Message string `json:"message"`
	UserID  uint   `json:"userID"`
}

NewResponse 新規レスポンス

Jump to

Keyboard shortcuts

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