Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthRequest ¶
type AuthRequest struct { UserName string `json:"userName"` AuthKey string `json:"authKey"` Remember bool `json:"remember"` Captcha string `json:"captcha"` }
AuthRequest struct
type AuthResponse ¶
type AuthResponse struct { Success bool `json:"success"` PrivateArmored pgp.PrivateKey `json:"privateArmored,omitempty"` User user.User `json:"user,omitempty"` Error string `json:"error,omitempty"` // Require Captcha Captcha string `json:"captcha,omitempty"` }
AuthResponse struct
type CreateRequest ¶
type CreateResponse ¶
type CreateResponse struct { Success bool `json:"success"` Errors interface{} `json:"errors,omitempty"` }
type Key ¶
type Key struct { // PublicArmored armored PGP public key PublicArmored string `json:"publicArmored" form:"publicArmored"` // PrivateArmored armored PGP private key encrypted with passphrase PrivateArmored string `json:"privateArmored" form:"privateArmored"` // RecoveryHash hash of recovery key RecoveryHash string `json:"recoveryHash" form:"recoveryHash"` // RecoveryArmored PGP private key encrypted with recovery key RecoveryArmored string `json:"recoveryArmored" form:"recoveryArmored"` }
type SaltRequest ¶
type SaltRequest struct {
UserName string `json:"userName" form:"userName"`
}
type SaltResponse ¶
Click to show internal directories.
Click to hide internal directories.