Documentation ¶
Index ¶
- func CREDchangeUserID(db *sql.DB, oldID int, newID int) error
- func GetOpenedVotesCount(db *sql.DB) (count int)
- func GetTestCredentials(db *sql.DB) (result string, err error)
- func GetTodayVotesCountForUserID(userID int, db *sql.DB) (count int)
- func IsActiveCredential(userID int, db *sql.DB) bool
- func IsReferrerExists(referrer string, db *sql.DB) bool
- func REFchangeUserID(db *sql.DB, oldID int, newID int) error
- type Credential
- type Referral
- type Response
- type State
- type Vote
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpenedVotesCount ¶
Types ¶
type Credential ¶
func GetAllActiveCredentials ¶
func GetAllActiveCredentials(db *sql.DB) (credentials []Credential, err error)
func GetCredentialByUserID ¶
func GetCredentialByUserID(userID int, db *sql.DB) (credential Credential, err error)
func GetCredentialByUserName ¶
func GetCredentialByUserName(userName string, db *sql.DB) (credential Credential, err error)
func (Credential) UpdatePower ¶
func (credential Credential) UpdatePower(power int, db *sql.DB) error
type Referral ¶
func GetReferralByUserID ¶
Click to show internal directories.
Click to hide internal directories.