Mainflux.mainflux/writers/messages.go

14 lines
375 B
Go

// Copyright (c) Mainflux
// SPDX-License-Identifier: Apache-2.0
package writers
import "github.com/mainflux/mainflux/transformers/senml"
// MessageRepository specifies message writing API.
type MessageRepository interface {
// Save method is used to save published message. A non-nil
// error is returned to indicate operation failure.
Save(...senml.Message) error
}