16 lines
320 B
Go
16 lines
320 B
Go
//
|
|
// Copyright (c) 2018
|
|
// Mainflux
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package mainflux
|
|
|
|
// MessagePublisher specifies a message publishing API.
|
|
type MessagePublisher interface {
|
|
// Publishes message to the stream. A non-nil error is returned to indicate
|
|
// operation failure.
|
|
Publish(RawMessage) error
|
|
}
|