user

package
v0.0.0-...-6362154 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeInfoParams

type ChangeInfoParams struct {
	Name        string `json:"name"`
	Picture     string `json:"picture"`
	NewPassword string `json:"new_password"`
	Password    string `json:"password"`
}

func (ChangeInfoParams) Validate

func (r ChangeInfoParams) Validate() error

type LoginDefaultParams

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

func (LoginDefaultParams) Validate

func (r LoginDefaultParams) Validate() error

type LoginGoogleParams

type LoginGoogleParams struct {
	Credential string `form:"credential"`
	CsrfToken  string `form:"g_csrf_token"`
}

func (LoginGoogleParams) Validate

func (l LoginGoogleParams) Validate(csrfCookie []byte) error

type PublicInfo

type PublicInfo struct {
	Name    string `json:"name"`
	Picture string `json:"picture"`
}

type RegisterDefaultParams

type RegisterDefaultParams struct {
	Name     string `json:"name"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Picture  string `json:"picture"`
}

func (RegisterDefaultParams) Validate

func (r RegisterDefaultParams) Validate() error

Jump to

Keyboard shortcuts

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