1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-01 13:48:56 +08:00

27 lines
381 B
Go
Raw Normal View History

//
// Copyright (c) 2018
// Mainflux
//
// SPDX-License-Identifier: Apache-2.0
//
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
}