db

package
v0.10.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2021 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	Id          string
	Addr        string
	ConnectTime int64
	Connected   bool
}

type PeerDB

type PeerDB struct {
	// contains filtered or unexported fields
}

func OpenPeerDB

func OpenPeerDB(path string) (*PeerDB, error)

func (*PeerDB) Close

func (p *PeerDB) Close() error

func (*PeerDB) PeerList

func (p *PeerDB) PeerList() []*Peer

func (*PeerDB) UpdatePeer

func (p *PeerDB) UpdatePeer(peerInfo *Peer)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL