// // Copyright (c) 2018 // Mainflux // // SPDX-License-Identifier: Apache-2.0 // package api type apiReq interface { validate() error } type listMessagesReq struct { chanID string offset uint64 limit uint64 } func (req listMessagesReq) validate() error { if req.limit < 1 { return errInvalidRequest } return nil }