postmgr

package
v0.4.7-1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package postmgr provides article posting management for go-pugleaf

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PosterManager

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

PosterManager manages the posting of articles to multiple providers

func NewPosterManager

func NewPosterManager(db *database.Database, pools []*nntp.Pool) *PosterManager

NewPosterManager creates a new poster manager

func (*PosterManager) ProcessPendingPosts

func (pm *PosterManager) ProcessPendingPosts(limit int) (int, error)

ProcessPendingPosts processes all pending posts in the queue

func (*PosterManager) Run

func (pm *PosterManager) Run(limit int, shutdownChan <-chan struct{}, wg *sync.WaitGroup)

Run starts the poster manager

func (*PosterManager) Stop

func (pm *PosterManager) Stop()

Stop stops the poster manager

Jump to

Keyboard shortcuts

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