Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestParams ¶
type RequestParams struct { Length int `form:"length", json"length"` Digits int `form:"digits", json:"digits"` Symbols int `form:"symbols", json:"symbols"` }
func (*RequestParams) Validate ¶
func (r *RequestParams) Validate() error
type Response ¶
type Response struct { Request RequestParams `json:"request"` Password string `json:"password"` Error string `json:"error,omitempty"` }
Click to show internal directories.
Click to hide internal directories.