Documentation ¶
Index ¶
- func GetAllMemes() (objs *[]Meme, err error)
- func GetAllTransactions(userKey string, offset int, pageSize int) (objs *[]MemeInvestment, err error)
- func GetAllTransactionsTotal(userKey string) (int, error)
- func GetLeaders() (objs *[]User, err error)
- func GetMemeInvestmentsByMeme(memeId string) (objs *[]MemeInvestment, err error)
- func GetMemeVoteFromMemesByUser(memeIds []string, userId string) (objs *map[string]MemeVote, err error)
- func GetRecentMemes(offset int, pageSize int, fromTime time.Time) (objs *[]Meme, total int, err error)
- func GetRecentMemesByUser(key string, offset int, pageSize int) (objs *[]Meme, total int, err error)
- func GetToBeExpiredMemes() (objs *[]Meme, err error)
- func GetTopMemes(offset int, pageSize int) (objs *[]Meme, total int, err error)
- func GetUsersFromUserIds(userIds []string) (objs *map[string]User, err error)
- type Config
- type Meme
- type MemeInvestment
- type MemeVote
- type User
- func GetMemeInvestmentFromId(id string) (objs *User, err error)
- func GetUserFromFbId(fbId string) (objs *User, err error)
- func GetUserFromFbToken(fbToken string) (objs *User, err error)
- func GetUserFromId(id string) (objs *User, err error)
- func GetUserFromUsername(username string) (objs *User, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllMemes ¶
func GetAllTransactions ¶
func GetAllTransactions(userKey string, offset int, pageSize int) (objs *[]MemeInvestment, err error)
func GetAllTransactionsTotal ¶
func GetLeaders ¶
func GetMemeInvestmentsByMeme ¶
func GetMemeInvestmentsByMeme(memeId string) (objs *[]MemeInvestment, err error)
func GetRecentMemes ¶
func GetRecentMemesByUser ¶
func GetToBeExpiredMemes ¶
Types ¶
type Config ¶
func GetConfigByName ¶
type Meme ¶
type Meme struct { Key *datastore.Key `datastore:"__key__"` CreatedDate time.Time CreatedUserId string CurrentInvestments int Description string ExpirationDate time.Time ImagePath string InternalLikes int ModifiedDate time.Time SocialPostThreshold int SocialFbPostLink string SocialLikes int SocialPostsCreated bool SocialPostedDate time.Time SocialUpdatedDate time.Time IsExpired bool Title string TotalFame int }
func GetMemeFromId ¶
func (*Meme) DaysToExpire ¶
func (*Meme) TotalLikes ¶
type MemeInvestment ¶
type MemeInvestment struct { Key *datastore.Key `datastore:"__key__"` BidAmount int CreatedDate time.Time MomentsInternalLikes int MomentsMemeInvestment int MomentsSocialLikes int MomentsTotalFame int MemeId string MemeName string PayoutAmount int PayoutDate time.Time UserId string }
func (*MemeInvestment) GetCreatedTime ¶
func (this *MemeInvestment) GetCreatedTime() (str string)
func (*MemeInvestment) GetPayOutDate ¶
func (this *MemeInvestment) GetPayOutDate() (str string)
func (*MemeInvestment) Save ¶
func (this *MemeInvestment) Save() (err error)
func (*MemeInvestment) Update ¶
func (this *MemeInvestment) Update() (err error)
type MemeVote ¶
type MemeVote struct { Key *datastore.Key `datastore:"__key__"` MemeId string UserId string VoteValue int CreatedDate time.Time }
func GetMemeVoteFromId ¶
type User ¶
type User struct { Key *datastore.Key `datastore:"__key__"` Username string FbId string FbToken string CurrentCredit int CreatedDate time.Time UpdateDate time.Time UsernamePromptShown bool InitialCreditShown bool MemeTipsShown bool TransactionTipsShown bool }
func GetMemeInvestmentFromId ¶
func GetUserFromFbId ¶
func GetUserFromFbToken ¶
func GetUserFromId ¶
func GetUserFromUsername ¶
func (*User) GetPostCount ¶
Click to show internal directories.
Click to hide internal directories.