Mainflux.mainflux/opcua/api/requests.go

21 lines
333 B
Go
Raw Normal View History

// Copyright (c) Mainflux
// SPDX-License-Identifier: Apache-2.0
package api
import "github.com/mainflux/mainflux/pkg/errors"
type browseReq struct {
ServerURI string
Namespace string
Identifier string
}
func (req *browseReq) validate() error {
if req.ServerURI == "" {
return errors.ErrMalformedEntity
}
return nil
}