* MF-1308 - Use IETF Health Check standard
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add nginx health endpoint
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm github.com/nelkinda dependency
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Check error
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Replace Version by Health in the CLI and SDK
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use new build flag go:build
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert wrong renaming
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* sdk health test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add /health endpoint to openapi doc
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use const for description message
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add version and build time during build
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Time format
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add version and commit using git and build args
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add comments
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add missing api properties
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix api
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use ./schemas/HealthInfo.yml as
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix example
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use content type application/health+json
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Set Makefile variables only if empty
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* NOISSUE - Fix default nats publisher subject
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use created timestamp inn transformer
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use created timestamp in transformer
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* rename topic -> subject for nats
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* revert
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* revert
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix subscriber topic
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix timestamp
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use int64 nanoseconds Created timestamp
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add comment to created protobuf field
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm gogo from scripts/ci.sh
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Return publisher in NewPublisher
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Refactor messaging
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename SubscribeHandler to MessageHandler
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove `Auth` event logs
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update message pubsub APi
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix topics handling
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update CoAP adapter
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update Twins service
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update LoRa adapter
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update OPC UA adapter
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove broker package
Package `broker` is conceptually renamed to package `nats`.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update makefile
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add comment explanation
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix MQTT adapter
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix typo
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Move NATS pub/sub implementation to pubsub pkg
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove an empty line in main methods
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Move messaging-related code to messaging package
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix Twins mocks
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Change Occurred back to Created
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix tranformer test
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix message proto commands
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Replace string literal with constant
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove alias from main method
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Change messaging pubsub alias
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename occured to created
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Handle NATS connection in the NATS PubSub
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename n to pub/pubSub
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix typos
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add provision service
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix Provision service initial version
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* MF-1078 - Add reception time to published messages and use it if SenML time is missing
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comments
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add message timestamp
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix pub
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Mv timestamp to service layer
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert WS
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix coap
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix CI bot
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename Timestamp Created
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Mv Created field to message creation
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Mv Created field to message creation
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use UnixNano
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use google.protobuf.Timestamp
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add protoc-gen-gogo and gogoproto to CI script
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use TimestampProto to generate timestamp
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* NOISSUEE - Create broker package for NATS
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Create funcs to return NATS connection
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* mv os.exit to main
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix Reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix tests and typos
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix CI
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Unify Publisher and Subscriber interfaces
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename Nats interface
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Mv message.pb.go, messsage.proto and topics.go to broker directory
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix go.mod
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use mainflux broker for writers and twins services
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix go.mod
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix twins tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix make proto
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix message.proto
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix golangcibot
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* regenerate message.pb.go
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix make proto
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add NATS errors
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add disconnect event to mProxy
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename publishers to pubs
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use acync publishers
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add inital Auth implementation
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Extract IssuedAt on transport layer
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add token type
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix Auth service URL in Things service
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add User Keys revocation check
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update tests
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove unused tracing methods
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix Key retrival and parsing
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove unused code
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Increase test coverage
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix compose files
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix typos
Simplify tests.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix typos and remove useless comments
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename Auth to Authn
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename database.go to tracin.go
A new name (`tracing.go`) describes better the purpose of the file.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Increase test coverage
Fix typo.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Increase test coverage
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove token from Users service
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix identify login keys
Rename token parsing method.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Extract tokenizer to interface
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove pointer time
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use pointer for expiration time in response
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use uppercase N
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove unnecessary email check
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Cleanup unused code and env vars
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename tokenizer field
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use slices and named fields in test cases
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update AuthN keys naming
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove package-lock.json changes
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove Secret from issuing request
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use Normalizer as a lib
To normalize messages on the consumer side, Normalizer is moved
to the internal pkgs. Writers being message consumers are modified to
do message normalization instead of subscribing to normalized messages
subject.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix logging middleware for readers and writers
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove normalizer interface
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use Normalizer in writers
As we agreed on #919, we'll use normalizer as an interface and provide
the default SenML implementation. Because of that, Normalizer is removed
from `internal` and we'll use the project structure proposed in the
aforementioned issue.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix tests
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove unused batch settings from influxDB reader
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update docs
Move Normalizer service to `addons`.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename channels input topic
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update Noramlizer docs
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove commented code
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update readers logging
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update addons docker-compose files
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update topcis explanations
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add `make rungw` command to run mainflux without jaeger
Add name to jaeger container
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add explanatory comment in Makefile
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add new line on end file
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* NOISSUE - Fix Docker for ARM
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Correct ARGs
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix docker-compose for ARM
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Add docker manifest
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* cp not mv qemu from mf root
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix amd64 docker names for ui and mqtt images
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* edit ci.sh for testing purposes
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove bachslash from make manifest
edits in ci for testing purposes
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix manifest call
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* add manifest on version realese
delete space before latest argument
fix for loop in manifest creation
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* include tests
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* docker system prune
remove tests for testin purposes
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add variant in manifest file for armv7
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove white space
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* paralelise the compilation
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix place of -j$NPROC
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove installing non-existent package from ci
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove branch master condition in ci.sh to test it
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix syntax error
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* update apt
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* build arm images for latest release
push ui and mqtt arm images
install only qemu-user-static
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* clean docker after pushing amd64 images
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* installing all qemu app
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove docker images before building ui and mqtt arm-images
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* prune dockers and test only arm build
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix syntax error
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix moving qemu-arm-static
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* installing qemu with apt-get
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* add another apt-get update
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* apt install one liner
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* testing ci script
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* After installing qemu, get appropriate version
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Test ci without amd64 dockers
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove tests from ci for test purpose
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Uncomment commands
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove whitespace and change order of building images
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add arm Dockerfiles
Change version of postgres images in docker-compose to use versions with multiarch
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* docker compose file
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove bin qemu file
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove unnecesarry comments
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add make dockers_arm32v7 in Makefile
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove docker/Dockerfile.arm
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add build for arm32v7 in ui Makefile
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add arm32v7 tags
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* add docker-compose for arm
remove thing-db in docker compose (use same db as user)
fix dockerfile and makefile
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix thing database env variable
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Switch back to separate database for things and users
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* rename arm32v7 to arm
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove arm32v7 tag
rename arm32v7 image names
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Rename command for making mqtt and ui individual images, to match other miscroservices
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Push arm docker images
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix fucntion call in ci.sh
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* mergiing ui/Dockerfile
Signed-off-by: Ivan Milošević <iva@blokovi.com>
This commit, intruduces changes to the current behavior of the "make cleandocker" command.
From now on, an extra parameter must be given in order to delete the persistent volumes, which up until now was done by default. The new command which represents the old behavior (deleting all artifacts created from the docker composition) is "make pv=true cleandocker".
Signed-off-by: Jovan Kostovski <chombium@gmail.com>
* added filter and a switch for volume deletion
Signed-off-by: Jovan Kostovski <chombium@gmail.com>
* added persistent volume configuration
Signed-off-by: Jovan Kostovski <chombium@gmail.com>
* Commit for mainflux-596
Modified and tested:
- cli
- http
- mqtt
- normalizer
- all readers
- sdk messages
- all writers
- ws
Missing:
- coap
- lora
Signed-off-by: ale <ale@metaverso.org>
* - fix subtopic name in, when starting with dot, http/ws/mqtt
- add some test on readers
Signed-off-by: ale <ale@metaverso.org>
* - fix string concatenation
- update http/transport regexp to match subtopic names with only \w-
- update ws/transport regexp like http ones with also the wildcard * and >
Signed-off-by: ale <ale@metaverso.org>
* added subtopic support to coap adapter
Signed-off-by: ale <ale@metaverso.org>
* - update replace functions with replaceall when needed
- renamed getDestChannel to fmtSubject
- update api/transport and ws/transport route to be more readable
- fix mqtt syntax
- renamed func andQuery to query as suggested by @anovakovic01
- have a nice we :)
Signed-off-by: ale <ale@metaverso.org>
* - fix error declaration on ws/nat/publisher
- fix regexp added missing allowed chars - and _ on coap/api/transport
- fix subtopic clean suffix / if present on coap/api/transport
- improve regexp on http and ws /api/transport, now does not accept url that do not strictly match
- add some ws subtopic tests
Signed-off-by: ale <ale@metaverso.org>
* - enabled wildcard chars on coap/api/transport
- allow use special chars on http and ws api/transport
Signed-off-by: ale <ale@metaverso.org>
* - use strings.Replace() insted ReplaceAll()
Signed-off-by: ale <ale@metaverso.org>
* - allow every chars on subtopics
- fix replace error on mqtt
Signed-off-by: ale <ale@metaverso.org>
* fix cassandra test
Signed-off-by: ale <ale@metaverso.org>
* fix ws test with invalid subtopic
Signed-off-by: ale <ale@metaverso.org>
* fix invalid GOCACHE in go1.12, replaced by -count 1, see https://golang.org/doc/go1.10#test
Signed-off-by: ale <ale@metaverso.org>
* - improve regexp on http/ws api/transport
- minor changes
Signed-off-by: ale <ale@metaverso.org>
* - add generic function parseSubtopic on ws/http adapters
Signed-off-by: ale <ale@metaverso.org>
* - add generic function fmtSubtopic on coap adapter
Signed-off-by: ale <ale@metaverso.org>