goodbyeutil

package
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig() (twitter.Twitter, twitter.TwitterProfile, error)

GetConfig returns a twitter client and authenticates to the current user profile from the configuration in the environment.

func RunLoop

func RunLoop(log logger.Logger, api twitter.Twitter, self twitter.TwitterProfile, interval time.Duration) error

RunLoop executes RunOnce periodically with given interval while preserving the follower counts in memory.

func RunOnce

func RunOnce(log logger.Logger, prev []int64, api twitter.Twitter, self twitter.TwitterProfile) ([]int64, error)

RunOnce compares the user IDs given in prev to the current follower IDs and sends a DM to the self about unfollowed users and runs

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL