Aryan Godara
54c7518316
MF-1718 - Use static code analysis in CI ( #1729 )
...
* things, twins, and logger lint fixed
Signed-off-by: aryan <aryangodara03@gmail.com>
* all services updated, auth jwt not working, ineffectual assignment issue
Signed-off-by: aryan <aryangodara03@gmail.com>
* handle error from grpc server in endpointtest
Signed-off-by: aryan <aryangodara03@gmail.com>
* temp commit, auth/jwt needs to be resolved
Signed-off-by: aryan <aryangodara03@gmail.com>
* revert back to jwt v4 temporarily
Signed-off-by: aryan <aryangodara03@gmail.com>
* updated jwt tokenizer
Signed-off-by: aryan <aryangodara03@gmail.com>
* resolve EOF error for httptest requests
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix auth jwt, update to registeredclaims
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix ineffective assignment, auth/api/grpc endpoint failing
Signed-off-by: aryan <aryangodara03@gmail.com>
* temp commit, remove later
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix grpc server setup
Signed-off-by: aryan <aryangodara03@gmail.com>
* resolve golangci tests, remove debug statements
Signed-off-by: aryan <aryangodara03@gmail.com>
* update golangci version and modify linters used
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix failing tests
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix grpc server for setup tests
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix logging and errors inlined
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix remarks, update grpc setup_test
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix setup_test
Signed-off-by: aryan <aryangodara03@gmail.com>
* update setup_test grpc
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix data race
Signed-off-by: aryan <aryangodara03@gmail.com>
* update setup_test grpc
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix grpc setup down to single simple function
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix linting issues
Signed-off-by: aryan <aryangodara03@gmail.com>
* resolve pr comments
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix tests, handle returned errors, go mod tidy vendor
Signed-off-by: aryan <aryangodara03@gmail.com>
* fix errors from new linters
Signed-off-by: aryan <aryangodara03@gmail.com>
---------
Signed-off-by: aryan <aryangodara03@gmail.com>
2023-04-22 17:14:35 +02:00
b1ackd0t
b83a344093
NOISSUE - Update SDK and Things Service ( #1694 )
...
* add reader url
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* fix connected and not-connected
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Co-authored-by: rodneyosodo <socials@rodneyosodo.com>
2023-01-11 17:11:36 +01:00
b1ackd0t
48e368b59a
NOISSUE - Combining Query Parameters ( #1631 )
...
* Initial commit
Signed-off-by: b1ackd0t <blackd0t@protonmail.com>
* Initial commit
Signed-off-by: b1ackd0t <blackd0t@protonmail.com>
* Fix CI
Signed-off-by: b1ackd0t <blackd0t@protonmail.com>
* fix tests: add enabled status key
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
* start with token
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Signed-off-by: b1ackd0t <blackd0t@protonmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: rodneyosodo <socials@rodneyosodo.com>
Co-authored-by: rodneyosodo <socials@rodneyosodo.com>
2023-01-05 17:20:05 +01:00
b1ackd0t
2e0299119d
NOISSUE - Fix Update Channel CLI Typo ( #1649 )
...
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
2022-08-24 15:14:47 +02:00
b1ackd0t
9a87e5cd1f
NOISSUE - Get user by ID and get all users by SDK ( #1589 )
...
* Add get user by id and get all users
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Remove print statement
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add get user by id and get all users
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Remove print statement
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* rename userid
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* rename userid
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add pagination
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* reduce user creation
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add pagination to sdk
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add offset and limits
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Remove exported variables
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add filtering users value to sdk
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add filtering to things and channels
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Linting
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Add struct embedding
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change filtering variable names
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Change Name to Email
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Combined Paging struct
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* setting total, offset and limit even when zero
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Rename fields
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Rename pageMetadata
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Update tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Adding limit and offset size errors
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Update tests
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* ♻️
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* query by name, metadata or id
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Remove duplicate importation
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Remove duplicate pageMetadata
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* remove unused name
Signed-off-by: GitHub <noreply@github.com>
* Fix minor changes
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* use net/url to construct query params
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* simplify query
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* unexport method
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Fix mock
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* update user
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* email and metadata as flags
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* update help message
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2022-06-17 17:32:23 +02:00
Manuel Imperiale
09cbc3f14b
MF-1551 - Fix Cobra usage commands and clean unnecessary struct types ( #1558 )
...
* MF-1551 - Fix Cobra usage commands and clean unnecessary struct types
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use linux syntax for cmd usage description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix cmd.Use
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2022-02-11 13:22:57 +01:00
Manuel Imperiale
9334568ba2
MF-983 - Add HTTP query param to connections list endpoints to fetch disconnected Things or Channels ( #1217 )
...
* MF-983 - Add HTTP query param to connections list endpoints to fetch non connected Things or Channels
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typos and add Swagger
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Update SDK and CLI
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify queries
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix tabulation
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-07-26 22:47:15 +02:00
Dušan Borovčanin
ea3a891c91
MF-1190 - Add pkg for library packages ( #1191 )
...
* Move messaging to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move errors to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move Transformers to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move SDK to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove Transformers from root
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix make proto
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add copyrights header
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix CI
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move Auth client to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update dependencies and vendors
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix CI
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2020-06-03 15:16:19 +02:00
Nick Neisen
66487eda42
MF-788 - Remove date and minimize copyright comments ( #876 )
...
* Update copyright comment for go files
Signed-off-by: nwneisen <nwneisen@gmail.com>
* Update copyright in assortment of file types
Signed-off-by: nwneisen <nwneisen@gmail.com>
* Remove missed copyright date
Signed-off-by: nwneisen <nwneisen@gmail.com>
2019-10-07 16:14:47 +02:00
Manuel Imperiale
63de955a7c
NOISSUE - Add searchable Channels name ( #754 )
...
* NOISSUE - Add searchable Things name
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add postgres schema validation and tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add namme tests in requests_test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* NOISSUE - Add searchable Channels name
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix bootstrap mocks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2019-06-11 10:37:25 +02:00
Manuel Imperiale
53036b5ae7
Fix CLI docs ( #566 )
...
* Fix CLI docs
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix CLI docs typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix CLI docs typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix CLI docs typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Typo fix
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Typo fix
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2019-02-01 23:17:09 +01:00
Manuel Imperiale
a0505e0eeb
NOISSUE - Add connection commands to CLI ( #542 )
...
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2019-01-10 21:42:31 +01:00
Manuel Imperiale
5f6bbf4b0a
MF-419 - Use JSON for CLI commands output ( #504 )
...
* MF-419 - Use JSON for CLI commands output
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* dep ensure
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Remove accidentaly added CLI binary
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix cast
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix review
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Typo fix
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use logCreated for token command
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix review
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2018-12-16 14:01:37 -05:00
Aleksandar Novaković
ad5c66fad2
NOISSUE - Refactor SDK and things service ( #420 )
...
* Refactor Mainflux go SDK
Add structures instead of string parameters. Add offset and limit
parameters to things and channels methods. Add better configuration
support.
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add new public errors with better error handling
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update SDK to use uint instread of string id
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update cli to use new SDK API
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Remove TLS termination from nginx configuration
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update SDK documentation and structures
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Refactor things service
Decouple HTTP layer from business logic. Remove ID number validation
check. Remove models from HTTP requests and responses.
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Reformat tests for things service
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Increase test coverage for things service
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
2018-10-24 10:21:03 +01:00
Drasko DRASKOVIC
a8eb7ae039
MF-354 - Add Go SDK ( #357 )
...
* MF-354 - Add Go SDK
This PR adds Go SDK. It also refactors `cli` to use new SDK.
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Use http consts. Add doc.
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Insline const
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Add initial SDK tests
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix SDK to return values (not HTTP rsp)
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix CLI and test
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* fix typos, add header
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix doc
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix doc, add comment
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Inline error checks
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix typos
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Inline errs
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix typo
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Change fnc parameter name
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Rename getters to Go standard
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Use struct and interface
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Simplify sdk struct
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix README
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2018-10-14 16:44:21 +02:00
Ivan Milošević
effade00aa
MF-325 - Add SPDX license and copyright headers ( #362 )
...
* MF-325 - Add SPDX license and copyright headers
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* MF-325 - Add SPDX license and copyright headers
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* MF-325 - Add SPDX license and copyright headers
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* MF-325 - Add SPDX license and copyright headers
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* MF-325 - Change mainflux version from 0.4.0 to 0.5.0
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2018-08-26 13:15:48 +02:00
Drasko DRASKOVIC
2c988c19b0
NOISSUE - Rename bashflux to cli and fix cert path ( #349 )
...
* NOISSUE - rename bashflux to cli and fix cert path
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix pkg name
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2018-08-16 13:41:27 +02:00