forked from justusranvier/bmd
-
Notifications
You must be signed in to change notification settings - Fork 5
/
doc.go
25 lines (19 loc) · 945 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Originally derived from: btcsuite/btcd/database/doc.go
// Copyright (c) 2013-2015 Conformal Systems LLC.
// Copyright (c) 2015 Monetas.
// Copyright 2016 Daniel Krawisz.
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
/*
Package database provides a database interface for handling Bitmessage objects.
Basic Design
The basic design of this package is to store objects to be propagated separate
from the objects that need to persist (pubkeys). The objects to be propagated
are periodically deleted as they expire. It uses counters instead of timestamps
to keep track of the order that objects were received in. High level operations
such as FetchIdentityByAddress are also provided for convenience.
Usage
At the highest level, the use of this packages just requires that you import it,
setup a database, insert some data into it, and optionally, query the data back.
*/
package database