redis

package
v0.0.0-...-5a2df16 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSyncRecord

func AddSyncRecord(sha string, status string, message string)

Save sync record to Redis

func GetSyncRecords

func GetSyncRecords(query string) (map[string]SyncData, error)

Get sync record/records

func PublishMessage

func PublishMessage() error

Redis message publishing

func Subscribe

func Subscribe() (*redis.PubSub, error)

Redis channel subscription

Types

type SyncData

type SyncData struct {
	Sha     string `json:"sha"`
	Status  string `json:"status"`
	Message string `json:"message"`
}

Struct definition to set sync parameters to save in Redis

Jump to

Keyboard shortcuts

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