blacklist

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// BlacklistedUsers: list of all blacklisted usernames
	BlacklistedUsers [][]string
	// Activated: quota manager activation boolean
	Activated bool `yaml:"activated"`
}

Manager data

func (*Manager) AddUser

func (bm *Manager) AddUser(user string)

AddUser add argument username to the blacklist

func (*Manager) FilterScrappedUsers

func (bm *Manager) FilterScrappedUsers(users []selenium.WebElement) []selenium.WebElement

FilterScrappedUsers remove blacklisted users from WebElement slice and return it

func (*Manager) InitializeBlacklist

func (bm *Manager) InitializeBlacklist() error

InitializeBlacklist check existence of the blacklist csv file and initialize it if it doesn't exist.

func (*Manager) IsBlacklisted

func (bm *Manager) IsBlacklisted(user string) bool

IsBlacklisted check if the given user is already blacklisted

Jump to

Keyboard shortcuts

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