14 lines
296 B
Go
14 lines
296 B
Go
|
package writers
|
||
|
|
||
|
import (
|
||
|
"github.com/mainflux/mainflux"
|
||
|
)
|
||
|
|
||
|
// MessageRepository specifies message reading API.
|
||
|
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
|
||
|
}
|