Mainflux.mainflux/pkg/transformers/transformer.go

13 lines
334 B
Go

// Copyright (c) Mainflux
// SPDX-License-Identifier: Apache-2.0
package transformers
import "github.com/mainflux/mainflux/pkg/messaging"
// Transformer specifies API form Message transformer.
type Transformer interface {
// Transform Mainflux message to any other format.
Transform(msg messaging.Message) (interface{}, error)
}