示例#1
0
// Configure initializes this filter with values from a plugin config.
func (filter *Stream) Configure(conf core.PluginConfig) error {
	filter.blacklist = conf.GetStreamArray("FilterBlockStreams", []core.MessageStreamID{})
	filter.whitelist = conf.GetStreamArray("FilterOnlyStreams", []core.MessageStreamID{})
	return nil
}