cache

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RedisDB *redis.Client
)

Functions

func Init

func Init()

func MessageExist

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

func MessageGet

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

func MessageInsert

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

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