whitelist

package
v0.0.0-...-bc7309e Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: AGPL-3.0-or-later Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

func NewChecker

func NewChecker(
	redis *redis.Client,
	logger *zap.Logger,
	interval time.Duration,
	enable bool,
) *Checker

func (*Checker) GetBlacklist

func (c *Checker) GetBlacklist() []string

func (*Checker) GetWhitelist

func (c *Checker) GetWhitelist() []string

func (*Checker) IsBlacklisted

func (c *Checker) IsBlacklisted(guildID string) bool

func (*Checker) IsWhitelisted

func (c *Checker) IsWhitelisted(guildID string) bool

func (*Checker) Start

func (c *Checker) Start() error

Jump to

Keyboard shortcuts

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