mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00

Simplified code where possible. Fixed golint suggestions regarding the missing godoc comments and unnecessary initialized variables. Signed-off-by: Dejan Mijic <dejan@mainflux.com>
12 lines
366 B
Go
12 lines
366 B
Go
package http
|
|
|
|
import "github.com/mainflux/mainflux/writer"
|
|
|
|
// Service specifies an API that must be fullfiled by the domain service
|
|
// implementation, and all of its decorators (e.g. logging & metrics).
|
|
type Service interface {
|
|
// Publish accepts the raw SenML message and publishes it to the event bus
|
|
// for post processing.
|
|
Publish(writer.RawMessage) error
|
|
}
|