Mainflux.mainflux/users/api/grpc/requests.go

17 lines
222 B
Go

package grpc
import (
"github.com/mainflux/mainflux/users"
)
type identityReq struct {
token string
}
func (req identityReq) validate() error {
if req.token == "" {
return users.ErrMalformedEntity
}
return nil
}