trackerclient package - github.com/archiveteam/go-trackerclient - Go Packages

trackerclient

package module
v0.0.0-...-f4e8b65 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ErrInvalidTrackerResponse = TrackerError("invalid tracker response")
View Source
const ErrNoSuchProject = TrackerError("this project doesn't exist")
View Source
const ErrNoTasksAvailable = TrackerError("no tasks available")

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
}

type RetryLogger

type RetryLogger struct {
	retryablehttp.LeveledLogger
}

func (*RetryLogger) Debug

func (that *RetryLogger) Debug(_ string, _ ...interface{})

func (*RetryLogger) Error

func (that *RetryLogger) Error(msg string, keysAndValues ...interface{})

func (*RetryLogger) Info

func (that *RetryLogger) Info(msg string, keysAndValues ...interface{})

func (*RetryLogger) Warn

func (that *RetryLogger) Warn(msg string, keysAndValues ...interface{})

type TrackerClient

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

func NewTrackerConfig

func NewTrackerConfig(trackerConfig *TrackerConfig) (*TrackerClient, error)

func (*TrackerClient) ItemDone

func (that *TrackerClient) ItemDone(item string) error

func (*TrackerClient) ItemDoneContext

func (that *TrackerClient) ItemDoneContext(ctx context.Context, item string) error

func (*TrackerClient) ItemsDone

func (that *TrackerClient) ItemsDone(items []string, bytes map[string]uint64) error

func (*TrackerClient) ItemsDoneContext

func (that *TrackerClient) ItemsDoneContext(ctx context.Context, items []string, bytes map[string]uint64) error

func (*TrackerClient) RequestItem

func (that *TrackerClient) RequestItem() (item string, err error)

func (*TrackerClient) RequestItemContext

func (that *TrackerClient) RequestItemContext(ctx context.Context) (item string, err error)

func (*TrackerClient) RequestItems

func (that *TrackerClient) RequestItems(limit uint64) ([]string, error)

func (*TrackerClient) RequestItemsContext

func (that *TrackerClient) RequestItemsContext(ctx context.Context, limit uint64) ([]string, error)

type TrackerConfig

type TrackerConfig struct {
	Project        string
	ProjectVersion string
	TrackerUrl     string
	Username       string
	Password       string

	RequestTimeout time.Duration
	// contains filtered or unexported fields
}

type TrackerError

type TrackerError string

func (TrackerError) Error

func (e TrackerError) Error() string

Jump to

Keyboard shortcuts

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