aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-02-13 10:59:47 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-02-13 10:59:47 -0700
commit34005ecd76f65c18920e686e3bfdb9ad5e5754a2 (patch)
tree3597cf9a764ba9e99779477a70f7bb71848d1a4c /bucket.go
parentMerge pull request #24 from benbjohnson/remap (diff)
parentAPI Documentation. (diff)
downloaddedo-34005ecd76f65c18920e686e3bfdb9ad5e5754a2.tar.gz
dedo-34005ecd76f65c18920e686e3bfdb9ad5e5754a2.tar.xz
Merge pull request #29 from benbjohnson/cleanup
API Documentation
Diffstat (limited to 'bucket.go')
-rw-r--r--bucket.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/bucket.go b/bucket.go
index 28c570e..414d260 100644
--- a/bucket.go
+++ b/bucket.go
@@ -1,11 +1,16 @@
package bolt
+// Bucket represents a collection of key/value pairs inside the database.
+// All keys inside the bucket are unique. The Bucket type is not typically used
+// directly. Instead the bucket name is typically passed into the Get(), Put(),
+// or Delete() functions.
type Bucket struct {
*bucket
name string
transaction *Transaction
}
+// bucket represents the on-file representation of a bucket.
type bucket struct {
root pgid
}