Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBalance ¶
GetBalance manages the entire balance check flow including airdrops
func WithUserID ¶
func WithUserID(userID string) requestGetUserBalanceOption
Types ¶
type User ¶
type User struct { ID int64 UID string Email sql.NullString Balance int64 LastAirdropAt sql.NullTime TotalTokensAirdropped int64 }
func (*User) InitBalance ¶
Init sets the user's balance to the given value. If the user does not exist, it creates a new user.
Click to show internal directories.
Click to hide internal directories.