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.
23 lines
334 B
23 lines
334 B
3 months ago
|
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
|
||
|
}
|