Documentation ¶
Index ¶
- func RandomKey(a []*datastore.Key) *datastore.Key
- type ByFollowers
- type ByLoops
- type ByOverall
- type ByPosts
- type ByRevines
- type DB
- func (db *DB) ExportUser(userIdStr string, w http.ResponseWriter)
- func (db *DB) FetchUser(userId string) error
- func (db *DB) GenSummaryChart(user *UserRecord) (string, error)
- func (db *DB) GetQueuedUser(userId string) (user *QueuedUser, err error)
- func (db *DB) GetRecentUsers(n int, filter ...interface{}) (records []UserRecord, err error)
- func (db *DB) GetTop() (data map[string]interface{})
- func (db *DB) GetTotalUsers() (int, error)
- func (db *DB) GetUser(userId int64) (user *UserRecord, err error)
- func (db *DB) GetUserData(userId int64) (userData []*UserData, err error)
- func (db *DB) GetUserMeta(userId int64) (userMeta []*UserMeta, err error)
- func (db *DB) GetUserRecord(userId int64) (*UserRecord, error)
- func (db *DB) QueueUser(userId string)
- func (db *DB) SearchUsers(query string) ([]UserRecord, error)
- func (db *DB) UnqueueUser(user string)
- func (db *DB) UserQueueExist(userId int64) bool
- type MetaStats
- type QueuedUser
- type UserData
- type UserIndex
- type UserMeta
- type UserRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ByFollowers ¶
type ByFollowers []UserRecord
func (ByFollowers) Len ¶
func (a ByFollowers) Len() int
func (ByFollowers) Less ¶
func (a ByFollowers) Less(i, j int) bool
func (ByFollowers) Swap ¶
func (a ByFollowers) Swap(i, j int)
type ByLoops ¶
type ByLoops []UserRecord
type ByOverall ¶
type ByOverall []UserRecord
type ByPosts ¶
type ByPosts []UserRecord
type ByRevines ¶
type ByRevines []UserRecord
type DB ¶
func NewRequest ¶
func (*DB) ExportUser ¶
func (db *DB) ExportUser(userIdStr string, w http.ResponseWriter)
func (*DB) GenSummaryChart ¶
func (db *DB) GenSummaryChart(user *UserRecord) (string, error)
func (*DB) GetQueuedUser ¶
func (db *DB) GetQueuedUser(userId string) (user *QueuedUser, err error)
func (*DB) GetRecentUsers ¶
func (db *DB) GetRecentUsers(n int, filter ...interface{}) (records []UserRecord, err error)
func (*DB) GetTotalUsers ¶
func (*DB) GetUserRecord ¶
func (db *DB) GetUserRecord(userId int64) (*UserRecord, error)
func (*DB) SearchUsers ¶
func (db *DB) SearchUsers(query string) ([]UserRecord, error)
func (*DB) UnqueueUser ¶
func (*DB) UserQueueExist ¶
type QueuedUser ¶
type UserRecord ¶
type UserRecord struct { UserId string Discovered time.Time Username string `datastore:",noindex"` Vanity string Description string `datastore:",noindex"` Location string `datastore:",noindex"` ProfileBackground string `datastore:",noindex"` AvatarUrl string `datastore:",noindex"` FollowerCount int64 FollowingCount int64 LoopCount int64 LoopVelocity float64 PostCount int64 RevineCount int64 LikeCount int64 Private bool Verified bool Explicit bool UserData []*UserData `datastore:"-"` UserMeta []*UserMeta `datastore:"-"` UserDataJsonStr string `datastore:"-"` UserMetaJsonStr string `datastore:"-"` }
Click to show internal directories.
Click to hide internal directories.