Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PerUserMutex *mapmutex.Mutex
PerUserMutex will block on a userid basis to prevent spamming from one user
Functions ¶
func AskForFeedback ¶
func AskForFeedback()
AskForFeedback will periodically ask users for feedback after they've done the KYC
func GetClient ¶
func GetClient() (*twitter.Client, *database.OAuthToken, error)
GetClient returns a twitter client
func GetFollowers ¶
func GetFollowers()
GetFollowers will start a periodic watcher retrieving the followers of our account every 6 hours
func InitializeWebhook ¶
func InitializeWebhook() error
InitializeWebhook will register and create the webhook through the twitter api
func MonitorRatelimit ¶
func MonitorRatelimit()
MonitorRatelimit will ensure that all twitter calls are executed at most once per two seconds
func WatchNotifications ¶
func WatchNotifications()
WatchNotifications will watch for notifications in the database and execute them
Types ¶
type OAuthRequest ¶
OAuthRequest collects all required information for completing the OAuth1 authentication flow
Click to show internal directories.
Click to hide internal directories.