2018-08-26 19:15:48 +08:00
|
|
|
//
|
|
|
|
// Copyright (c) 2018
|
|
|
|
// Mainflux
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//
|
|
|
|
|
2018-05-21 22:28:52 +08:00
|
|
|
package writers
|
|
|
|
|
2018-08-06 23:06:55 +08:00
|
|
|
import "github.com/mainflux/mainflux"
|
2018-05-21 22:28:52 +08:00
|
|
|
|
2018-08-06 23:06:55 +08:00
|
|
|
// MessageRepository specifies message writing API.
|
2018-05-21 22:28:52 +08:00
|
|
|
type MessageRepository interface {
|
|
|
|
|
|
|
|
// Save method is used to save published message. A non-nil
|
|
|
|
// error is returned to indicate operation failure.
|
|
|
|
Save(mainflux.Message) error
|
|
|
|
}
|