presenter

package
v0.0.0-...-9058691 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailRequest

type MailRequest struct {
	Email string `json:"email"`
}

type SearchResponse

type SearchResponse struct {
	Match []SignInResponse
}

type SearchResquest

type SearchResquest struct {
	Username string `json:"search"`
}

type SetCookie

type SetCookie struct {
	Name    string
	Value   string
	Expires time.Duration
}

type SignInRequest

type SignInRequest struct {
	UsernameOrEmail string `json:"username_or_email"`
	Password        string `json:"password"`
}

func (*SignInRequest) IsRequestValid

func (input *SignInRequest) IsRequestValid() error

type SignInResponse

type SignInResponse struct {
	UserId   string `json:"userId"`
	Username string `json:"username"`
	Email    string `json:"email"`
	Token    string `json:"token"`
}

type SignUpRequest

type SignUpRequest struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Limit    int    `json:"limit"`
}

func (*SignUpRequest) IsRequestValid

func (input *SignUpRequest) IsRequestValid() error

type SignUpResponse

type SignUpResponse struct {
	Id       string `json:"id"`
	Username string `json:"username"`
	Email    string `json:"email"`
	Limit    int    `json:"limit"`
}

type UpdatePassword

type UpdatePassword struct {
	Email       string `json:"email"`
	NewPassword string `json:"new_password"`
}

func (*UpdatePassword) IsPasswordValid

func (input *UpdatePassword) IsPasswordValid() error

type VerifyOtp

type VerifyOtp struct {
	Code string `json:"code"`
}

Jump to

Keyboard shortcuts

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