Initial version
Change-Id: Ia95ac0cc8321d78489de7b728449f94e5553f27a
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
diff --git a/examples/example-xapp.go b/examples/example-xapp.go
new file mode 100755
index 0000000..03764a1
--- /dev/null
+++ b/examples/example-xapp.go
@@ -0,0 +1,18 @@
+package main
+
+import "gitlabe1.ext.net.nokia.com/ric_dev/nokia-xapps/xapp/pkg/xapp"
+
+type MessageCounter struct {
+}
+
+func (m MessageCounter) Consume(mtype, len int, payload []byte) (err error) {
+ xapp.Logger.Debug("Message received - type=%d len=%d", mtype, len)
+
+ xapp.Sdl.Store("myKey", payload)
+ xapp.Rmr.Send(10005, len, payload)
+ return nil
+}
+
+func main() {
+ xapp.Run(MessageCounter{})
+}