cache

package
v0.0.0-...-37f092c Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisClient *redis.Client

Functions

func CreateMessage

func CreateMessage(ctx context.Context, key string, revkey string, stamp_key int64, field string) error

func GetMessage

func GetMessage(ctx context.Context, key string) ([]string, error)

func Init

func Init()

func MessageExist

func MessageExist(ctx context.Context, key string) int64

Types

type Message

type Message struct {
	Id         int64
	ToUserId   int64
	FromUserId int64
	Content    string
	CreatedAt  time.Time
	UpdatedAt  time.Time
	DeletedAt  gorm.DeletedAt `gorm:"index"`
}

Jump to

Keyboard shortcuts

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