services

package
v0.0.0-...-b75edac Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTorrentStoreClientFlags

func RegisterTorrentStoreClientFlags(f []cli.Flag) []cli.Flag

func RegisterWebFlags

func RegisterWebFlags(f []cli.Flag) []cli.Flag

Types

type MetaInfo

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

func NewMetaInfo

func NewMetaInfo(cl *TorrentStoreClient, infohash string) *MetaInfo

func (*MetaInfo) Get

func (s *MetaInfo) Get() (*metainfo.MetaInfo, error)

type TorrentStore

type TorrentStore struct {
	lazymap.LazyMap
	// contains filtered or unexported fields
}

func NewTorrentStore

func NewTorrentStore(ts *TorrentStoreClient) *TorrentStore

func (*TorrentStore) Get

func (s *TorrentStore) Get(h string) ([]file, error)

type TorrentStoreClient

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

func NewTorrentStoreClient

func NewTorrentStoreClient(c *cli.Context) *TorrentStoreClient

func (*TorrentStoreClient) Close

func (s *TorrentStoreClient) Close()

func (*TorrentStoreClient) Get

type Web

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

func NewWeb

func NewWeb(c *cli.Context, cl *TorrentStore) *Web

func (*Web) Close

func (s *Web) Close()

func (*Web) Serve

func (s *Web) Serve() error

type Zip

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

func NewZip

func NewZip(ts *TorrentStore, infoHash string, path string, baseURL string, token string, apiKey string, suffix string) *Zip

func (*Zip) Size

func (s *Zip) Size() (size int64, err error)

func (*Zip) Write

func (s *Zip) Write(w io.Writer, start int64, end int64) error

Jump to

Keyboard shortcuts

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