Documentation ¶
Index ¶
- Constants
- Variables
- func CreateDummyTorrentData(dirName string) string
- func ExportStatusWriter(sw StatusWriter, path string, t *testing.T) (release func())
- func GreetingMetaInfo() *metainfo.MetaInfo
- func GreetingTestTorrent() (tempDir string, metaInfo *metainfo.MetaInfo)
- type File
- type StatusWriter
- type Torrent
Constants ¶
View Source
const ( // A null in the middle triggers an error if SQLite stores data as text instead of blob. GreetingFileContents = "hello,\x00world\n" GreetingFileName = "greeting" )
Variables ¶
View Source
var Greeting = Torrent{ Files: []File{{ Data: GreetingFileContents, }}, Name: GreetingFileName, }
Functions ¶
func CreateDummyTorrentData ¶
func ExportStatusWriter ¶
func ExportStatusWriter(sw StatusWriter, path string, t *testing.T) (release func())
func GreetingMetaInfo ¶
func GreetingTestTorrent ¶
Gives a temporary directory containing the completed "greeting" torrent, and a corresponding metainfo describing it. The temporary directory can be cleaned away with os.RemoveAll.
Types ¶
type StatusWriter ¶
Click to show internal directories.
Click to hide internal directories.