Code Review
/
ric-plt
/
sdlgo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New 'statistics' SDL CLI command
[ric-plt/sdlgo.git]
/
example_test.go
diff --git
a/example_test.go
b/example_test.go
index
2e6f97a
..
d3be2f7
100644
(file)
--- a/
example_test.go
+++ b/
example_test.go
@@
-15,6
+15,11
@@
limitations under the License.
*/
limitations under the License.
*/
+/*
+ * This source code is part of the near-RT RIC (RAN Intelligent Controller)
+ * platform project (RICP).
+ */
+
package sdlgo_test
import (
package sdlgo_test
import (
@@
-23,14
+28,14
@@
import (
"gerrit.o-ran-sc.org/r/ric-plt/sdlgo"
)
"gerrit.o-ran-sc.org/r/ric-plt/sdlgo"
)
-var sdl *sdlgo.S
dlInstanc
e
+var sdl *sdlgo.S
yncStorag
e
func init() {
func init() {
- sdl = sdlgo.NewS
dlInstance("namespace", sdlgo.NewDatabase()
)
+ sdl = sdlgo.NewS
yncStorage(
)
}
func ExampleSdlInstance_Set() {
}
func ExampleSdlInstance_Set() {
- err := sdl.Set("stringdata", "data", "intdata", 42)
+ err := sdl.Set("
namespace", "
stringdata", "data", "intdata", 42)
if err != nil {
panic(err)
} else {
if err != nil {
panic(err)
} else {
@@
-40,7
+45,7
@@
func ExampleSdlInstance_Set() {
}
func ExampleSdlInstance_Get() {
}
func ExampleSdlInstance_Get() {
- retMap, err := sdl.Get([]string{"stringdata", "intdata"})
+ retMap, err := sdl.Get(
"namespace",
[]string{"stringdata", "intdata"})
if err != nil {
panic(err)
} else {
if err != nil {
panic(err)
} else {