manage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAILLOGIN   = "mail"
	GOOGLELOGIN = "google"
	WECHATLOGIN = "wechat"
	APPLELOGIN  = "apple"
)
View Source
const (
	OperationMailLogin   = "maillogin"
	OperationGoogleLogin = "googlelogin"
	OperationWechatLogin = "wechatlogin"
	OperationAppleLogin  = "applelogin"

	OperationLogout        = "logout"
	OperationResetPassword = "reset_password"
	OperationRefreshToken  = "refresh_token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(db *sql.DB, config *config.Config, logger *log.PlutoLog) *Manager

func (*Manager) AppleLoginMobile added in v0.2.0

func (m *Manager) AppleLoginMobile(login request.AppleMobileLogin) (map[string]string, *perror.PlutoError)

func (*Manager) EmailLogin

func (m *Manager) EmailLogin(login request.MailLogin) (map[string]string, *perror.PlutoError)

func (*Manager) GoogleLoginMobile

func (m *Manager) GoogleLoginMobile(login request.GoogleMobileLogin) (map[string]string, *perror.PlutoError)

func (*Manager) RefreshAccessToken

func (m *Manager) RefreshAccessToken(rat request.RefreshAccessToken) (map[string]string, *perror.PlutoError)

func (*Manager) RegisterVerify

func (m *Manager) RegisterVerify(token string) *perror.PlutoError

func (*Manager) RegisterVerifyMail

func (m *Manager) RegisterVerifyMail(rvm request.RegisterVerifyMail, baseURL string) *perror.PlutoError

func (*Manager) RegisterWithEmail

func (m *Manager) RegisterWithEmail(register request.MailRegister) (uint, *perror.PlutoError)

func (*Manager) ResetPassword

func (m *Manager) ResetPassword(rp request.ResetPassword) *perror.PlutoError

func (*Manager) ResetPasswordMail

func (m *Manager) ResetPasswordMail(rpm request.ResetPasswordMail, baseURL string) *perror.PlutoError

func (*Manager) ResetPasswordPage

func (m *Manager) ResetPasswordPage(token string) *perror.PlutoError

func (*Manager) UpdateUserInfo

func (m *Manager) UpdateUserInfo(token string, uui request.UpdateUserInfo) *perror.PlutoError

func (*Manager) UserInfo

func (m *Manager) UserInfo(token string) (*models.User, *perror.PlutoError)

func (*Manager) WechatLoginMobile

func (m *Manager) WechatLoginMobile(login request.WechatMobileLogin) (map[string]string, *perror.PlutoError)

Jump to

Keyboard shortcuts

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