1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-02 22:17:10 +08:00
Mainflux.mainflux/opcua/api/responses.go
Manuel Imperiale f42f2095ba NOISSUE - Add a Browse endpoint in opcua-adapter (#988)
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

Co-authored-by: Nikola Marčetić <n.marcetic86@gmail.com>
2019-12-23 17:30:44 +01:00

29 lines
432 B
Go

// Copyright (c) Mainflux
// SPDX-License-Identifier: Apache-2.0
package api
import (
"net/http"
"github.com/mainflux/mainflux"
)
var _ mainflux.Response = (*browseRes)(nil)
type browseRes struct {
Nodes []string `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
}