1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-26 13:48:53 +08:00
Mainflux.mainflux/opcua/api/responses.go
Manuel Imperiale 7b62f1ce8a NOISSUE - Add details to browsed OPC-UA nodes (#1019)
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-01-27 12:25:16 +01:00

30 lines
481 B
Go

// Copyright (c) Mainflux
// SPDX-License-Identifier: Apache-2.0
package api
import (
"net/http"
"github.com/mainflux/mainflux"
"github.com/mainflux/mainflux/opcua"
)
var _ mainflux.Response = (*browseRes)(nil)
type browseRes struct {
Nodes []opcua.BrowsedNode `json:"nodes"`
}
func (res browseRes) Code() int {
return http.StatusOK
}
func (res browseRes) Headers() map[string]string {
return map[string]string{}
}
func (res browseRes) Empty() bool {
return false
}