Documentation ¶
Index ¶
Constants ¶
View Source
const ( GreetingFileContents = "hello, world\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) (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.