Make DB instance visible 39/1139/5 v0.5.0
authorMarco Tallskog <marco.tallskog@nokia.com>
Fri, 11 Oct 2019 10:24:04 +0000 (13:24 +0300)
committerMarco Tallskog <marco.tallskog@nokia.com>
Mon, 14 Oct 2019 14:24:50 +0000 (17:24 +0300)
commitf759492b4f02f1e9d66115a6b83deec519cb5df4
treee6b4558e8def738353a2b501a30abf0069c5051d
parent33fdc5897e5a97acd2b866c3f01af8151f40fda3
Make DB instance visible

Make underlying DB instance visible to clients. This change makes it
easier for the clients to e.g. share the same DB instance between
multiple SDL instances (multiple namespaces is used). The DB instance
can be created once and reuse it every time a new SDL instance is
created. The DB instance is created with Newdatabase() method.

Update the documentation so that it is mentioned that subscribing the
channels is not safe for concurrent usage.

Change-Id: I1b09500eda44b6b095a3bf564c38e794d02f9d95
Signed-off-by: Marco Tallskog <marco.tallskog@nokia.com>
doc.go
internal/sdlgoredis/sdlgoredis.go
sdl.go
sdl_private_fn_test.go [new file with mode: 0644]
sdl_test.go