refresh

package
v0.0.0-...-c4c071c Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prepare

func Prepare(options ...Option)

func Run

func Run(nzbpath string) (bool, error)

Types

type Config

type Config struct {
	arguments.Args
	// contains filtered or unexported fields
}

type Option

type Option func(*Config)

func WithCheckOnly

func WithCheckOnly(checkOnly bool) Option

func WithCsv

func WithCsv(writeCsv bool) Option

func WithDebug

func WithDebug(shouldDebug bool) Option

func WithMode

func WithMode(mode string) Option

func WithNZBFile

func WithNZBFile(path string) Option

func WithProvider

func WithProvider(provider string) Option

type Provider

type Provider struct {
	Name                  string
	Host                  string
	Port                  uint32
	SSL                   bool
	SkipSslCheck          bool
	Username              string
	Password              string
	MaxConns              uint32
	ConnWaitTime          time.Duration
	IdleTimeout           time.Duration
	HealthCheck           bool
	MaxTooManyConnsErrors uint32
	MaxConnErrors         uint32
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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