MasterKenway commented on a change in pull request #286: URL: https://github.com/apache/dubbo-go-pixiu/pull/286#discussion_r734943257
########## File path: pkg/filter/event/event.go ########## @@ -0,0 +1,59 @@ +package event + +import ( + "github.com/apache/dubbo-go-pixiu/pkg/common/constant" + "github.com/apache/dubbo-go-pixiu/pkg/common/extension/filter" + "github.com/apache/dubbo-go-pixiu/pkg/context/http" +) + +const ( + // Kind is the kind of Fallback. + Kind = constant.HTTPCorsFilter +) + +func init() { + filter.RegisterHttpFilter(&Plugin{}) +} + +type ( + // Plugin is http filter plugin. + Plugin struct { + } + + // Filter is http filter instance + Filter struct { + cfg *Config + } + + Config struct { + mqType MQType + KafkaVersion string Review comment: 我的考虑是做为一个配置的可选字段 当使用 kafka 的时候必须填下,这是 sarama 的一个创建参数 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org