redis

package
v0.0.0-...-c272ad0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DisneyRedis

type DisneyRedis struct {
	RedisClient *redis.Client
}

func Get

func Get() *DisneyRedis

func (*DisneyRedis) Connect

func (r *DisneyRedis) Connect()

func (*DisneyRedis) SendBookNotification

func (r *DisneyRedis) SendBookNotification(notification Notification) error

type Notification

type Notification struct {
	BookAlertID uint              `json:"bookAlertId"`
	DiscordID   string            `json:"discordId"`
	Restaurant  models.Restaurant `json:"restaurant"`
	Date        string            `json:"date"`
	MealPeriod  string            `json:"mealPeriod"`
	PartyMix    int               `json:"partyMix"`
	Hours       []string          `json:"hours"`
}

Jump to

Keyboard shortcuts

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