backup

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ContentBaseUrl = "https://content.archive.ragtag.moe"

Variables

This section is empty.

Functions

func ArrayAppender

func ArrayAppender(file string) (io.WriteCloser, error)

func CreateListEntry

func CreateListEntry(fileName string, video string, channel string) (err error)

func CreateTorrent

func CreateTorrent(path []string, announce string)

func DownloadFile

func DownloadFile(wg *sync.WaitGroup, base string, files <-chan FileData)

Types

type Appender

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

func (Appender) Close

func (a Appender) Close() error

func (Appender) Write

func (a Appender) Write(b []byte) (n int, err error)

type FileData

type FileData struct {
	Drive   string
	Channel string
	Video   string
	File    string
}

type ListEntry

type ListEntry struct {
	VideoId   string    `json:"v"`
	ChannelId string    `json:"c"`
	Updated   time.Time `json:"u"`
}

func ReadList

func ReadList(fileName string) (entries []*ListEntry, err error)

stolen from https://gist.github.com/rodkranz/0a8ed14fa44b5860f6668efae02b3ea5

Jump to

Keyboard shortcuts

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