Documentation ¶
Index ¶
- Constants
- func ComputeHmac256(message string, secret string) string
- func FloatToString(f float64) string
- func FollowerDecay(followed_by, follows int64, magic, target float64) int64
- func IntToString(i int) string
- func Intervals() (intervals int)
- func IsLocal() bool
- func Limit(value *int, intervals int, bound int)
- func SixHoursAgo() string
- func StringToFloat(s string) float64
Constants ¶
View Source
const APPRAISE int = 0
Process Steps
View Source
const BADTAGS int = 4
View Source
const BUILD int = 2
View Source
const CALLS int = int(HOUR / INTERVAL)
View Source
const COMPUTETAGS int = 5
View Source
const DAY int64 = 60 * 60 * 24
Time constants
View Source
const FOLLOWS int = 60
Process Limits
View Source
const GOODTAGS int = 3
View Source
const GRABCOUNT int = 50
View Source
const HOUR float64 = 60 * 60
View Source
const INTERVAL float64 = 60 * 5 // In seconds. Should match Cron Job
View Source
const LIKES int = 100
View Source
const MAX int = 5000
View Source
const MAXPEOPLEGRAB int = int(MAXREQUESTS / GRABCOUNT)
View Source
const MAXPOSTGRAB int = 4
View Source
const MAXREQUESTS int = int(MAX / CALLS)
View Source
const SCORN int = 1
View Source
const SHARE int = 6
View Source
const SIXHOURS float64 = HOUR * 6
Variables ¶
This section is empty.
Functions ¶
func ComputeHmac256 ¶
func FloatToString ¶
func FollowerDecay ¶
func IntToString ¶
func SixHoursAgo ¶
func SixHoursAgo() string
func StringToFloat ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.