Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPostVersion = "1.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct {
URL string `bencode:"bitchan-peer-url"`
}
Peer contains info about a peer
type PeerList ¶
type PeerList struct { Peers map[string]Peer `bencode:"bitchan-peers"` Time int64 `bencode:"bitchan-time"` }
PeerList maps hostname to peer url
type Post ¶
type Post struct { MetaInfoURL string `bencode:"bitchan-metainfo-url"` MetaInfoHash string `bencode:"bitchan-infohash-hex",omit-empty` Version string `bencode:"bitchan-version",omit-empty` PostedAt int64 `bencode:"bitchan-posted-at"` PubKey string `bencode:"bitchan-poster-pubkey"` Signature string `bencode:"z",omit-empty` }
func (*Post) Sign ¶
func (p *Post) Sign(sk ed25519.PrivateKey)
type PostResponse ¶
type ThreadInfo ¶
type ThreadInfo struct { }
Click to show internal directories.
Click to hide internal directories.