resources

package
v0.0.0-...-9baed3d Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: GPL-3.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskPassword

func AskPassword() (string, error)

AskPassword prompts user for an input that is not echo-ed on terminal.

func CodeToString

func CodeToString(log *logrus.Logger, code int) string

func ConfigLogger

func ConfigLogger() *logrus.Logger

func GetEncodedMsg

func GetEncodedMsg(log *logrus.Logger, msg string, length int) []int64

func GetLogFile

func GetLogFile() *os.File

func GetTwitterClient

func GetTwitterClient(log *logrus.Logger) (*twitter.Client, error)

func InListOfWords

func InListOfWords(log *logrus.Logger, word string, words []string) (bool, int)

func LoadWords

func LoadWords(log *logrus.Logger, path string) ([]string, error)

LoadWords returns a list with all words in file splitted by line.

func ProcessWords

func ProcessWords(log *logrus.Logger, tweetText string) []string

func ReadMessage

func ReadMessage(
	log *logrus.Logger,
	words []string,
	senderTwitterUser string,
	count int,
)

func ReverseSlice

func ReverseSlice(s []twitter.Tweet) []twitter.Tweet

func SearchTweets

func SearchTweets(log *logrus.Logger, client *twitter.Client, target string) (*twitter.Search, *http.Response, error)

SearchTweets look for tweets with some params and print the result.

func SendMessage

func SendMessage(
	log *logrus.Logger,
	words,
	hashtags []string,
	encodedMsg []int64,
)

func ShuffleWords

func ShuffleWords(log *logrus.Logger, pwd string, words []string)

func StringToCode

func StringToCode(s string) int64

func UndoRetweet

func UndoRetweet(
	log *logrus.Logger,
	user string,
	count int,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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