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 }