diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2017-10-03 14:59:45 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2017-10-03 15:01:38 +0200 |
commit | 4de510778b6e55a2238374834d00b03726da76d4 (patch) | |
tree | 7b2d8b8f4db5d0bc2b81c8dfb31921fa59d45c6d /storage/memory | |
parent | db0c023fd0d756912c3f575c6ac65e99fda573cc (diff) | |
download | petrific-4de510778b6e55a2238374834d00b03726da76d4.tar.gz petrific-4de510778b6e55a2238374834d00b03726da76d4.tar.bz2 petrific-4de510778b6e55a2238374834d00b03726da76d4.zip |
Documentation
Diffstat (limited to 'storage/memory')
-rw-r--r-- | storage/memory/memory.go | 3 |
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 |