Documentation ¶
Index ¶
- func ChangePassword(c *gin.Context, db *gorm.DB)
- func CreateCard(c *gin.Context, db *gorm.DB)
- func CreateOTP(c *gin.Context, db *gorm.DB)
- func CurrentUser(c *gin.Context, db *gorm.DB)
- func GetBalances(c *gin.Context, db *gorm.DB)
- func GetPasswordChangeToken(c *gin.Context, db *gorm.DB)
- func LoginUser(c *gin.Context, db *gorm.DB)
- func MakeSwap(c *gin.Context, db *gorm.DB)
- func MakeTransfer(c *gin.Context, db *gorm.DB)
- func PubkeyToUser(c *gin.Context, db *gorm.DB)
- func RegisterUser(c *gin.Context, db *gorm.DB)
- func SetCardStaus(c *gin.Context, db *gorm.DB)
- func TopUpCard(c *gin.Context, db *gorm.DB)
- func VerifyJwt(jwToken string, jwtKey []byte, claims jwt.Claims) error
- type Balance
- type Claims
- type CreateOTPInput
- type GetPasswordChangeTokenInput
- type LoginUserInput
- type NoErrorBalance
- type PasswordChangeInput
- type PasswordResetClaims
- type RegisterUserInput
- type SetCardStausInput
- type SwapInput
- type TopUpCardInput
- type TransferInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOTPInput ¶
type LoginUserInput ¶
type NoErrorBalance ¶
type NoErrorBalance struct { Amount *uint64 `json:"amount"` Ata *solana.PublicKey `json:"ata"` }
type PasswordChangeInput ¶
type PasswordResetClaims ¶
type PasswordResetClaims struct { UserID string `json:"id"` jwt.RegisteredClaims }
type RegisterUserInput ¶
type RegisterUserInput struct { FirstName string `json:"first_name" form:"first_name" binding:"required"` LastName string `json:"last_name" form:"last_name" binding:"required"` Email string `json:"email" form:"email" binding:"required,email"` Password string `json:"password" form:"password" binding:"required"` }
type SetCardStausInput ¶
type SetCardStausInput struct {
CardActive bool `json:"card_active" form:"card_active"`
}
type TopUpCardInput ¶
type TopUpCardInput struct {
Amount uint64 `json:"amount" form:"amount" binding:"required"`
}
type TransferInput ¶
Click to show internal directories.
Click to hide internal directories.