tools

package
v0.0.0-...-e23eeb8 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_ENTRIES = 10

Variables

This section is empty.

Functions

func AddUser

func AddUser(client *redis.Client, value string) error

func GetAllStatus

func GetAllStatus(client *redis.Client) *[]UserDetails

func NewDatabase

func NewDatabase() (*redis.Client, error)

func SetupDatabase

func SetupDatabase(client *redis.Client, values map[string]interface{}) error

Types

type UserDetails

type UserDetails struct {
	Username string `json:"username"`
	Status   bool   `json:"status"`
}

func GetUserDetails

func GetUserDetails(client *redis.Client, value string) *UserDetails

Jump to

Keyboard shortcuts

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