1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-02 22:17:10 +08:00
Drasko DRASKOVIC 57a4535bc4 Change /channels API
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2016-09-20 23:03:54 +02:00

27 lines
570 B
Go

/**
* Copyright (c) Mainflux
*
* Mainflux server is licensed under an Apache license, version 2.0.
* All rights not explicitly granted in the Apache license, version 2.0 are reserved.
* See the included LICENSE file for more details.
*/
package models
import (
"github.com/krylovsk/gosenml"
)
type (
Channel struct {
Id string `json:"id"`
Device string `json:"device,omitempty"`
Created string `json:"created"`
Updated string `json:"updated"`
Values []gosenml.Entry `json:"values"`
Metadata map[string]interface{} `json:"metadata"`
}
)