]> Sergey Matveev's repositories - btrtrc.git/blob - webseed/client.go
webseed Client skeleton
[btrtrc.git] / webseed / client.go
1 package webseed
2
3 import (
4         "net/http"
5
6         pp "github.com/anacrolix/torrent/peer_protocol"
7 )
8
9 type RequestSpec = pp.RequestSpec
10
11 type Client struct {
12         HttpClient *http.Client
13         Url        string
14
15         requests map[RequestSpec]request
16 }
17
18 type request struct {
19         cancel func()
20 }
21
22 func (cl *Client) Request(r RequestSpec) {
23         //cl.HttpClient.Do()
24 }