Documentation ¶
Overview ¶
maintain a memory pools for network announcements
Index ¶
- Constants
- func AddCertificate(fingerprint *util.FingerprintBytes, certificate []byte)
- func AddPeer(address string, listenType int, data *PeerData) (bool, error)
- func Finalise()
- func GetCertificate(fingerprint *util.FingerprintBytes) ([]byte, bool)
- func Initialise()
- func RecentPeers(start *gnomon.Cursor, count int, listenType int) ([]interface{}, *gnomon.Cursor, error)
- type PeerData
- type RecentData
Constants ¶
View Source
const ( TypeRPC = iota TypePeer = iota )
type of listener
Variables ¶
This section is empty.
Functions ¶
func AddCertificate ¶
func AddCertificate(fingerprint *util.FingerprintBytes, certificate []byte)
add a certificate
func GetCertificate ¶
func GetCertificate(fingerprint *util.FingerprintBytes) ([]byte, bool)
fetch a certificate
Types ¶
type PeerData ¶
type PeerData struct {
Fingerprint *util.FingerprintBytes
}
a type to store data about a peer
Click to show internal directories.
Click to hide internal directories.