import "github.com/byte-mug/fastnntp-backend2/storage/tradgroup"
Implements a traditional newsgroup-listing solution. Based on the text files
active newsgroups
as provided by ftp://ftp.isc.org/pub/usenet/CONFIG/active and ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups respectively.
type TradGroup struct { ConfigPath string // path to the folder containing "active" and "newsgroups" Decompress string // must be "", ".gz", or ".bz2" }
-
func (tg *TradGroup) FetchGroups(status, descr bool, ge *storage.GroupElement) (cur storage.Cursor, err error)
-
import "bufio"
import "errors"
import "fmt"
import "github.com/byte-mug/fastnntp-backend2/decompress"
import "github.com/byte-mug/fastnntp-backend2/storage"
import "io"
import "os"
import "path/filepath"
import "regexp"