models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 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 PasswordReq

type PasswordReq struct {
	Length        int    `json:"len" binding:"omitempty,min=5,max=32"`
	ExtraSecurity int    `json:"extra" binding:"omitempty,min=0,max=10"`
	Helper        string `json:"helper" binding:"omitempty,max=60"`
}

PasswordReq defines the password's request.

type PasswordResp

type PasswordResp struct {
	Passwd string `json:"password"`
	Helper string `json:"helper"`
}

PasswordResp defines the password's' response.

Jump to

Keyboard shortcuts

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