// FilterByIndex return the filter by index
FilterByIndex return the filter by index
// FilterByIndex return the filter by index
func (fm *filterManager) FilterByIndex(index int) Filter {
	fm.fmLocker.RLock()
	defer fm.fmLocker.RUnlock()
	n := len(fm.filters)
	if index < 0 && index >= n {
		return nil
	}
	return fm.filters[index]
}
func ( fm * filterManager ) FilterByIndex ( index int ) Filter { fm . fmLocker . RLock ( ) defer fm . fmLocker . RUnlock ( ) n := len ( fm . filters ) if index < 0 && index >= n { return nil } return fm . filters [ index ] }
FilterByIndex return the filter by index
FilterByIndex return the filter by index