cache

package
v0.0.0-...-341a761 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	SaveTorrent(*torrent.Torrent) error
	LoadTorrents() ([]torrent.TorrentSpec, error)
	DeleteTorrent(*torrent.Torrent) error
}

type Directory

type Directory struct {
	Directory string
}

func NewDirectory

func NewDirectory(dir string) *Directory

func (*Directory) DeleteTorrent

func (c *Directory) DeleteTorrent(t *torrent.Torrent) error

func (*Directory) LoadTorrents

func (c *Directory) LoadTorrents() ([]torrent.TorrentSpec, error)

func (*Directory) SaveTorrent

func (c *Directory) SaveTorrent(t *torrent.Torrent) error

type Minio

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

func NewMinio

func NewMinio(client *minio.Client, bucket string) *Minio

func NewMinioWithRegion

func NewMinioWithRegion(client *minio.Client, bucket, region string) *Minio

func (*Minio) DeleteTorrent

func (c *Minio) DeleteTorrent(t *torrent.Torrent) error

func (*Minio) LoadTorrents

func (c *Minio) LoadTorrents() ([]torrent.TorrentSpec, error)

func (*Minio) SaveTorrent

func (c *Minio) SaveTorrent(t *torrent.Torrent) error

Jump to

Keyboard shortcuts

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