Documentation ¶
Index ¶
- type DB
- func (db *DB) BlockIP(ip net.IP, expiration int64)
- func (db *DB) BlockId(id vnode.NodeID, expiration int64)
- func (db *DB) Clean(expiration int64)
- func (db *DB) Iterate(prefix []byte, fn func(key, value []byte) bool)
- func (db *DB) ReadMarkNodes(n int) (nodes []*vnode.Node)
- func (db *DB) ReadNodes(expiration int64) (nodes []*vnode.Node)
- func (db *DB) Register(prefix []byte) *prefixDB
- func (db *DB) RemoveNode(ID vnode.NodeID)
- func (db *DB) RetrieveActiveAt(id vnode.NodeID) int64
- func (db *DB) RetrieveCheckAt(id vnode.NodeID) int64
- func (db *DB) RetrieveInt64(key []byte) int64
- func (db *DB) RetrieveMark(id vnode.NodeID) int64
- func (db *DB) RetrieveNode(id vnode.NodeID) (node *vnode.Node, err error)
- func (db *DB) StoreActiveAt(id vnode.NodeID, v int64)
- func (db *DB) StoreCheckAt(id vnode.NodeID, v int64)
- func (db *DB) StoreInt64(key []byte, n int64)
- func (db *DB) StoreMark(id vnode.NodeID, v int64)
- func (db *DB) StoreNode(node *vnode.Node) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) RemoveNode ¶
RemoveNode data about the specific NodeID
func (*DB) RetrieveInt64 ¶
func (*DB) RetrieveNode ¶
RetrieveNode Node according to the special nodeID
func (*DB) StoreInt64 ¶
Click to show internal directories.
Click to hide internal directories.