mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00
26 lines
412 B
Go
26 lines
412 B
Go
![]() |
package api
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/mainflux/mainflux"
|
||
|
)
|
||
|
|
||
|
var _ mainflux.Response = (*listMessagesRes)(nil)
|
||
|
|
||
|
type listMessagesRes struct {
|
||
|
Messages []mainflux.Message `json:"messages"`
|
||
|
}
|
||
|
|
||
|
func (res listMessagesRes) Headers() map[string]string {
|
||
|
return map[string]string{}
|
||
|
}
|
||
|
|
||
|
func (res listMessagesRes) Code() int {
|
||
|
return http.StatusOK
|
||
|
}
|
||
|
|
||
|
func (res listMessagesRes) Empty() bool {
|
||
|
return false
|
||
|
}
|