Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sioro-Neoku/go-peerflix
/ functions
Functions
19 in github.com/Sioro-Neoku/go-peerflix
⨍
Functions
19
◇
Types & classes
7
↓ 4 callers
Method
Close
Close cleans up the connections.
client.go:186
↓ 3 callers
Method
Error
()
client.go:33
↓ 2 callers
Method
Open
(url string)
player.go:19
↓ 2 callers
Method
ReadyForPlayback
* func (c Client) RenderPieces() (output string) { pieces := c.Torrent.PieceStateRuns() for i := range pieces { piece := pieces[i] if piece.Pri
client.go:275
↓ 2 callers
Function
downloadFile
(URL string)
client.go:308
↓ 2 callers
Method
getLargestFile
()
client.go:234
↓ 2 callers
Function
joinPlayerNames
joinPlayerNames returns a list of supported video players ready for display.
player.go:61
↓ 2 callers
Method
percentage
()
client.go:298
↓ 1 callers
Function
NewClient
NewClient creates a new torrent client based on a magnet or a torrent file. If the torrent file is on http, we try downloading it.
client.go:69
↓ 1 callers
Function
NewClientConfig
NewClientConfig creates a new default configuration.
client.go:57
↓ 1 callers
Function
NewFileReader
NewFileReader sets up a torrent file for streaming reading.
fileEntry.go:27
↓ 1 callers
Method
Render
Render outputs the command line interface for the client.
client.go:192
↓ 1 callers
Method
Seek
Seek seeks to the correct file position, paying attention to the offset.
fileEntry.go:22
↓ 1 callers
Function
downloadBlockList
(blocklistPath string)
client.go:174
↓ 1 callers
Function
getBlocklist
Download and add the blocklist.
client.go:134
↓ 1 callers
Function
openPlayer
openPlayer opens a stream using the specified player and port.
player.go:42
Method
GetFile
GetFile is an http handler to serve the biggest file managed by the client.
client.go:280
Method
Open
Open the given stream in a GenericPlayer.
player.go:29
Function
main
()
main.go:21