validators

package
v0.0.0-...-05b3b51 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignInRequestT

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

SignInRequestT defines sign in form request

func (*SignInRequestT) Validate

func (sir *SignInRequestT) Validate() *[]string

Validate validates sign in request

type SignUpRequestT

type SignUpRequestT struct {
	SignInRequestT
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

SignInRequestT defines sign in form request

func (*SignUpRequestT) Validate

func (sur *SignUpRequestT) Validate() *[]string

Validate validates sign in request

type VerificationRequestT

type VerificationRequestT struct {
	OTAC string `json:"otac"`
}

VerificationRequestT defines verification code request

func (*VerificationRequestT) Validate

func (vr *VerificationRequestT) Validate() *[]string

Validate validates verification request

Jump to

Keyboard shortcuts

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