Documentation ¶
Index ¶
- Variables
- func Build(tos, tarch string) error
- func HWID() string
- func Tar(src, dest string) error
- func Untar(src, dest string) error
- func Unzip(src, dest string) error
- func UserAgent(userAgent string) (string, string)
- func Zip(src, dest string) error
- type Connection
- type File
- type FileSystem
- type ID
- type Index
- func (i *Index) Add(c *Node)
- func (i *Index) AddCon(c *Connection)
- func (i *Index) Call(path Route, act string) (*http.Response, error)
- func (i *Index) Collect(n *Network)
- func (i *Index) Download(p string, c io.Writer) error
- func (i *Index) Init()
- func (i *Index) Join(ip net.IP, port int)
- func (i *Index) JoinNode(newNode *Node)
- func (i *Index) Merge(n *Index) bool
- func (i *Index) Scan()
- func (i *Index) Update()
- func (i *Index) Upload(p string, c io.Reader) error
- func (i *Index) Usage()
- type Network
- type Node
- type Route
- type Scan
- type Stat
- type StatLoad
- type StatUsage
- type Status
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var HWIDCache string = ""
Functions ¶
Types ¶
type Connection ¶
func NewConnection ¶
func NewConnection(n []*Node) Connection
type FileSystem ¶
func NewFileSystem ¶
func NewFileSystem(i *Index) FileSystem
func (*FileSystem) List ¶
func (f *FileSystem) List() map[string]File
type Index ¶
type Index struct { Type Type Status Status Connections map[ID]*Connection Nodes map[ID]*Node Physical StatLoad // contains filtered or unexported fields }
TODO: aggregate whole network into nodes TODO: allow for redirect indexing nodes
func (*Index) AddCon ¶
func (i *Index) AddCon(c *Connection)
type Route ¶
func ExtendRoute ¶
type StatLoad ¶
Click to show internal directories.
Click to hide internal directories.