database

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

database/redis.go

Index

Constants

This section is empty.

Variables

View Source
var (
	IconGetError    = errors.New("unable to icon error")
	WeatherGetError = errors.New("unable to weather error")
)

Functions

func NewRedisClient

func NewRedisClient(address string) (RedisClient, CloseFunc, error)

Types

type CloseFunc

type CloseFunc func()

type RedisClient

type RedisClient struct {
	Client rueidis.Client
	Ctx    context.Context
}

func (RedisClient) GetWeather

func (r RedisClient) GetWeather(city string) ([]byte, []byte, error)

func (RedisClient) SetWeather

func (r RedisClient) SetWeather(city, weather, icon string) error

Jump to

Keyboard shortcuts

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