batch

package
v0.0.0-...-e51d946 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package batch any batch level manipulations via graw

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllReplies

func GetAllReplies(bot gwrap.Bot, thread string, c chan gwrap.Comment, wg *sync.WaitGroup)

GetAllReplies to get all comments of a particular thread bot: reddit Bot, thread: thread, c: channel, wg WaitGroup ref

func NewBatch

func NewBatch(botAgentFile string) gwrap.Bot

NewBatch creates batch style handler for graw bot interactions botAgentFile: the name of the bot agent file to use

func RepliesProducer

func RepliesProducer(bot gwrap.Bot, subreddit string, thread string, regex string) <-chan []string

RepliesProducer creates a goroutine to return a receiving channel of reddit replies to a thread bot: reddit bot, subreddit: subreddit, thread: thread, regex: regex search pattern form based

func RepliesProducerMerged

func RepliesProducerMerged(bot gwrap.Bot, subreddit string, thread string, regex string, c chan []string) <-chan []string

RepliesProducerMerged creates a goroutine to return a receiving channel of reddit replies to a thread Uses a shared channel to merge results bot: reddit bot, subreddit: subreddit, thread: thread, regex: regex search pattern form based

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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