antiabuse

package
v1.5.1-beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2022 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Overview

Package antiabuse defines anti_abuse plugin ,support abuse words check and add/remove abuse words

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Set defines HashSet structure

func (*Set) Add

func (s *Set) Add(key string)

Add adds element to Set

func (*Set) AddMany

func (s *Set) AddMany(keys []string)

AddMany adds multiple elements to Set

func (*Set) Include

func (s *Set) Include(key string) bool

Include asserts element in Set

func (*Set) Iter

func (s *Set) Iter(f func(string) error) error

Iter calls f when traversing Set

func (*Set) Remove

func (s *Set) Remove(key string)

Remove removes element from Set

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL