commands

package
v0.0.0-...-fc716ca Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2016 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// App is the main hook to run
	App = kingpin.New("gonab", "A usenet indexer")
)

Functions

func SetupCommands

func SetupCommands()

SetupCommands sets up commands

Types

type BinariesCommand

type BinariesCommand struct{}

type GroupCommand

type GroupCommand struct {
	Groups []string
}

type GroupScanner

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

GroupScanner is designed to be run in a goroutine and take requests for groups to scan.

func NewGroupScanner

func NewGroupScanner(cfg *config.Config, dbh *db.Handle, ident string) (*GroupScanner, error)

NewGroupScanner returns a new GroupScanner

func (*GroupScanner) Close

func (g *GroupScanner) Close()

Close the connection

func (*GroupScanner) ScanLoop

func (g *GroupScanner) ScanLoop(scanRequests chan *scanRequest, wg *sync.WaitGroup)

ScanLoop takes requests for groups to scan, scans them and returns the result.

type RegexImporter

type RegexImporter struct{}

RegexImporter comment

type ReleasesCommand

type ReleasesCommand struct {
	Limit     int
	ReleaseID int64
	FilePath  string
	DirPath   string

	Categories []int64
	SearchTerm string
}

ReleasesCommand should probably be split up for the sub commands.

type ScanCommand

type ScanCommand struct {
	MaxArticles int
	MaxConns    int
	MaxChunk    int
	Group       string
}

ScanCommand comment

type ServerCommand

type ServerCommand struct{}

Jump to

Keyboard shortcuts

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