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

* NOISSSUE - Fix users CLI Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix README Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * use Mainflux entities Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Mv ConnectionIDs to requests Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
43 lines
912 B
Go
43 lines
912 B
Go
// Copyright (c) Mainflux
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package sdk
|
|
|
|
import "github.com/mainflux/mainflux/transformers/senml"
|
|
|
|
type tokenRes struct {
|
|
Token string `json:"token,omitempty"`
|
|
}
|
|
|
|
type createThingsRes struct {
|
|
Things []Thing `json:"things"`
|
|
}
|
|
|
|
type createChannelsRes struct {
|
|
Channels []Channel `json:"channels"`
|
|
}
|
|
|
|
type pageRes struct {
|
|
Total uint64 `json:"total"`
|
|
Offset uint64 `json:"offset"`
|
|
Limit uint64 `json:"limit"`
|
|
}
|
|
|
|
// ThingsPage contains list of things in a page with proper metadata.
|
|
type ThingsPage struct {
|
|
Things []Thing `json:"things"`
|
|
pageRes
|
|
}
|
|
|
|
// ChannelsPage contains list of channels in a page with proper metadata.
|
|
type ChannelsPage struct {
|
|
Channels []Channel `json:"channels"`
|
|
pageRes
|
|
}
|
|
|
|
// MessagesPage contains list of messages in a page with proper metadata.
|
|
type MessagesPage struct {
|
|
Messages []senml.Message `json:"messages,omitempty"`
|
|
pageRes
|
|
}
|