Documentation ¶
Index ¶
Constants ¶
View Source
const ( PidsK = 10 CidsK = 5 DefaultPeersSize = 500 //1000 DefaultCidsSize = 1000 //10000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerStorage ¶
func NewServerStorage ¶
func NewServerStorage() *ServerStorage
func (*ServerStorage) AddCidRecord ¶
func (st *ServerStorage) AddCidRecord(recs ...record.CidRecord)
func (*ServerStorage) GetRandomRecords ¶
func (st *ServerStorage) GetRandomRecords() []record.CidRecord
func (*ServerStorage) InsertAndGetPeers ¶
func (st *ServerStorage) InsertAndGetPeers(peer peer.AddrInfo) []peer.AddrInfo
Click to show internal directories.
Click to hide internal directories.