You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
334 B
22 lines
334 B
package adaptors
|
|
|
|
type IAdaptor interface {
|
|
Transform(raw string) []byte
|
|
}
|
|
|
|
type IAdaptor2 interface {
|
|
Transform(raw string) [][]byte
|
|
}
|
|
|
|
type IAdaptor3 interface {
|
|
Transform(topic, raw string) []byte
|
|
}
|
|
|
|
type IAdaptor4 interface {
|
|
Transform(topic, raw string) []NeedPush
|
|
}
|
|
|
|
type NeedPush struct {
|
|
Topic string
|
|
Payload []byte
|
|
}
|
|
|