mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-27 13:48:49 +08:00

* Add provisioning to postgres Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Add provisioning to things and channels service Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Add JSON provisioning endpoint to things API Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Add provisioning to SDK and CLI Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Update docs Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Remove response location and adjust channelsFromFile Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Change naming from 'provison' to 'bulkCreate' Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Add gocsv to vendors folder Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Update "bulk" naming Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Move CSV to CLI and remove gocsv dependancy Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Update docs and responses Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Change AddThings to be CreateThings Signed-off-by: Nick Neisen <nwneisen@gmail.com> * Improve test coverage Signed-off-by: nwneisen <nwneisen@gmail.com> * Fixes after review Signed-off-by: nwneisen <nwneisen@gmail.com>
40 lines
897 B
Go
40 lines
897 B
Go
// Copyright (c) Mainflux
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package sdk
|
|
|
|
import "github.com/mainflux/mainflux"
|
|
|
|
type tokenRes struct {
|
|
Token string `json:"token,omitempty"`
|
|
}
|
|
|
|
type createThingsRes struct {
|
|
Things []Thing `json:"things"`
|
|
}
|
|
|
|
type createChannelsRes struct {
|
|
Channels []Channel `json:"channels"`
|
|
}
|
|
|
|
type thingsPageRes struct {
|
|
Things []Thing `json:"things,omitempty"`
|
|
Total uint64 `json:"total"`
|
|
Offset uint64 `json:"offset"`
|
|
Limit uint64 `json:"limit"`
|
|
}
|
|
|
|
type channelsPageRes struct {
|
|
Channels []Channel `json:"channels,omitempty"`
|
|
Total uint64 `json:"total"`
|
|
Offset uint64 `json:"offset"`
|
|
Limit uint64 `json:"limit"`
|
|
}
|
|
|
|
type messagesPageRes struct {
|
|
Total uint64 `json:"total"`
|
|
Offset uint64 `json:"offset"`
|
|
Limit uint64 `json:"limit"`
|
|
Messages []mainflux.Message `json:"messages,omitempty"`
|
|
}
|