1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-02 22:17:10 +08:00

22 lines
303 B
Go

package grpc
import (
"github.com/mainflux/mainflux/things"
)
type accessReq struct {
thingKey string
chanID uint64
}
func (req accessReq) validate() error {
if req.chanID == 0 || req.thingKey == "" {
return things.ErrMalformedEntity
}
return nil
}
type identifyReq struct {
key string
}