myredis

package
v0.0.0-...-0e18c99 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(addr string, password string) *redis.Client

func Del

func Del() (int64, error)

func Entries

func Entries(group string, stream string) ([]redis.XStream, error)

func Messages

func Messages(entries []redis.XStream) []redis.XMessage

func PublishHref

func PublishHref(stream string, href string, group string) error

func SAdd

func SAdd(href string) (int64, error)

func SMembers

func SMembers() ([]string, error)

func Stream

func Stream(stream string, group string) error

Types

type MsgPost

type MsgPost struct {
	Href  string `json:"href"`
	Group string `json:"group"`
}

func Process

func Process(messages []redis.XMessage, stream string, group string) []MsgPost

Jump to

Keyboard shortcuts

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