redisModel

package
v0.0.0-...-edb2fbe Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HistoryMessage

func HistoryMessage(username string) ([]string, error)

func InitRedis

func InitRedis()

func RedisSession

func RedisSession() *redis.Client

func StoreMessage

func StoreMessage(m *Message, username string) bool

Types

type Message

type Message struct {
	Msg  string
	Time float64
}

type RedisConfig

type RedisConfig struct {
	Addr     string `json:"Addr"`
	Password string `json:"Password"`
	DB       int    `json:"DB"`
}

Jump to

Keyboard shortcuts

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