monitor

package
v0.0.0-...-1effcde Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

Monitor polls for new replies to the user's comments.

func New

func New(cfg config.Config, client *api.Client, db *cache.DB) *Monitor

New creates a new background monitor.

func (*Monitor) SeedComments

func (m *Monitor) SeedComments()

SeedComments adds the user's recent comments to the monitoring list.

func (*Monitor) Start

func (m *Monitor) Start(program *tea.Program, username string)

Start begins the background polling loop.

func (*Monitor) Stop

func (m *Monitor) Stop()

Stop halts the background polling.

type NewReplyNotification

type NewReplyNotification struct {
	ItemID      int
	ParentID    int
	StoryID     int
	ByUser      string
	TextPreview string
}

NewReplyNotification is sent when a new reply is detected.

Jump to

Keyboard shortcuts

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