package
Version:
v0.0.0-...-326830c
Opens a new window with list of versions in this module.
Published: Sep 8, 2023
License: GPL-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Claims struct {
UserName string `json:"username"`
UserID uint `json:"user_id"`
jwt.RegisteredClaims
}
type ContentReqDTO struct {
Choice string `json:"choice"`
Token string `json:"token"`
}
type ECDHKeyExchangeOutput struct {
PubKeyServerX *big.Int `json:"pub_key_server_x"`
PubKeyServerY *big.Int `json:"pub_key_server_y"`
}
type ECDHReqDTO struct {
Token string `json:"token"`
PubKeyWasmX *big.Int `json:"pub_key_wasm_x"`
PubKeyWasmY *big.Int `json:"pub_key_wasm_y"`
}
type LoginPrecheckDTO struct {
Username string `json:"username"`
}
type LoginPrecheckResponseDTO struct {
Username string `json:"username"`
Salt string `json:"salt"`
}
type LoginUserDTO struct {
Username string `json:"username"`
SaltedHashedPassword string `json:"password"`
PubKey string `json:"public_key"`
}
type LoginUserResponseDTO struct {
Token string `json:"token"`
}
type RegisterUserDTO struct {
Username string `json:"username"`
Password string `json:"password"`
Salt string `json:"salt"`
}
type User struct {
ID uint `gorm:"primaryKey; unique; autoIncrement; not null" json:"id"`
Username string `gorm:"unique; not null" json:"username"`
Password string `gorm:"not null" json:"password"`
Salt string `gorm:"not null" json:"salt"`
PublicKey string `gorm:"not null" json:"public_key"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.