Documentation ¶
Index ¶
- func GetKey(index uint) (*wallet.PrivateKey, error)
- type Bot
- func (b *Bot) CheckForNewTweets(streams []strm.Stream) error
- func (b *Bot) MaintenanceListen() error
- func (b *Bot) ProcessMissedTxs() error
- func (b *Bot) Run() error
- func (b *Bot) SafeUpdate() error
- func (b *Bot) SaveTx(tx graph.Tx) error
- func (b *Bot) SetAddresses() error
- func (b *Bot) SetExistingCookies() error
- func (b *Bot) UpdateStream() error
- type SaveTx
- func (s *SaveTx) FinishSave()
- func (s *SaveTx) HandleCreate() error
- func (s *SaveTx) HandleDown() error
- func (s *SaveTx) HandleRequestMainBot() error
- func (s *SaveTx) HandleRequestSubBot(stream strm.Stream) error
- func (s *SaveTx) HandleTxType() error
- func (s *SaveTx) HandleWithdraw() error
- func (s *SaveTx) Save(tx graph.Tx) error
- func (s *SaveTx) SetVars(tx graph.Tx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bot ¶
type Bot struct { Addresses []string Addr wallet.Addr Key wallet.PrivateKey TweetScraper *twitterscraper.Scraper ErrorChan chan error TxMutex sync.Mutex UpdateMutex sync.Mutex Timer *time.Timer Verbose bool Down bool }
func NewBot ¶
func NewBot(scraper *twitterscraper.Scraper, addresses []string, key wallet.PrivateKey, verbose bool, down bool) (*Bot, error)
func (*Bot) MaintenanceListen ¶
func (*Bot) ProcessMissedTxs ¶
func (*Bot) SafeUpdate ¶
func (*Bot) SetAddresses ¶
func (*Bot) SetExistingCookies ¶
func (*Bot) UpdateStream ¶
type SaveTx ¶
type SaveTx struct { Bot *Bot Tx graph.Tx Message string SenderAddress string CoinIndex uint32 TxHash chainhash.Hash Handled bool }
func (*SaveTx) FinishSave ¶
func (s *SaveTx) FinishSave()
func (*SaveTx) HandleCreate ¶
func (*SaveTx) HandleDown ¶
func (*SaveTx) HandleRequestMainBot ¶
func (*SaveTx) HandleTxType ¶
func (*SaveTx) HandleWithdraw ¶
Click to show internal directories.
Click to hide internal directories.