db

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	*redis.Client
	// contains filtered or unexported fields
}

func OpenDatabase

func OpenDatabase(l *zap.Logger, client *redis.Client) *Database

func (*Database) AddBlockedList

func (db *Database) AddBlockedList(blockedUid string, duration int64) error

func (*Database) IsBlocked

func (db *Database) IsBlocked(uid string) (bool, error)

func (*Database) RemoveBlockedList

func (db *Database) RemoveBlockedList(blockedUid string) error

Jump to

Keyboard shortcuts

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