Package tradgroup

import "github.com/byte-mug/fastnntp-backend2/storage/tradgroup"

Overview

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.

Index

type TradGroup

type TradGroup struct {
	ConfigPath	string	// path to the folder containing "active" and "newsgroups"
	Decompress	string	// must be "", ".gz", or ".bz2"
}

-

func (*TradGroup) FetchGroups

func (tg *TradGroup) FetchGroups(status, descr bool, ge *storage.GroupElement) (cur storage.Cursor, err error)

-

Dependencies