1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-28 13:48:49 +08:00
Mainflux.mainflux/opcua/api/responses.go

29 lines
432 B
Go
Raw Normal View History

// 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
}