request

package
v5.3.3-pre30 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Login

type Login struct {
	User string `validate:"required,username"`
	Pass string `validate:"required,min=8,max=64"`
	Code string `validate:"required"`
}

Login 登录表单值(暂未使用)

func (*Login) BeforeValidate

func (r *Login) BeforeValidate(ctx echo.Context) error

type Register

type Register struct {
	InvitationCode       string `validate:"required,min=16,max=32"`
	Username             string `validate:"required,username"`
	Email                string `validate:"required,email"`
	Password             string `validate:"required,min=8,max=64"`
	ConfirmationPassword string `validate:"required,eqfield=Password"`
}

func (*Register) BeforeValidate

func (r *Register) BeforeValidate(ctx echo.Context) error

type Setup

type Setup struct {
	Type       string `validate:"required"`
	User       string
	Password   string
	Host       string
	Database   string `validate:"required"`
	Charset    string `validate:"omitempty,alphanum"`
	AdminUser  string `validate:"username"`
	AdminPass  string `validate:"required,min=8,max=64"`
	AdminEmail string `validate:"required,email"`
	// contains filtered or unexported fields
}

func (*Setup) AfterValidate

func (s *Setup) AfterValidate(c echo.Context) error

func (*Setup) FromCLI

func (s *Setup) FromCLI() bool

func (*Setup) SetFromCLI

func (s *Setup) SetFromCLI(fromCLI bool)

Jump to

Keyboard shortcuts

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