aboutsummaryrefslogtreecommitdiff
path: root/storage/memory/memory.go
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2017-10-03 14:59:45 +0200
committerLaria Carolin Chabowski <laria@laria.me>2017-10-03 15:01:38 +0200
commit4de510778b6e55a2238374834d00b03726da76d4 (patch)
tree7b2d8b8f4db5d0bc2b81c8dfb31921fa59d45c6d /storage/memory/memory.go
parentdb0c023fd0d756912c3f575c6ac65e99fda573cc (diff)
downloadpetrific-4de510778b6e55a2238374834d00b03726da76d4.tar.gz
petrific-4de510778b6e55a2238374834d00b03726da76d4.tar.bz2
petrific-4de510778b6e55a2238374834d00b03726da76d4.zip
Documentation
Diffstat (limited to 'storage/memory/memory.go')
-rw-r--r--storage/memory/memory.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/memory/memory.go b/storage/memory/memory.go
index e73c51a..dc72f70 100644
--- a/storage/memory/memory.go
+++ b/storage/memory/memory.go
@@ -6,6 +6,9 @@ import (
"code.laria.me/petrific/storage"
)
+// Memory storage is an in-memory storage. It is rather useless when using petrific, it is mostly used for internal testing.
+// But if you want to use the memory storage anyway, you can do that by putting a storage section with the method
+// "memory" in your config file
type MemoryStorage struct {
objects map[string][]byte
bytype map[objects.ObjectType][]objects.ObjectId