kvstore

package
v0.0.0-...-839ea1c Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package kvstore around Redis References: https://redis.io/docs/latest/develop/interact/pubsub/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wrapper around Redis

func New

func New() Client

New initializes a new client

func (*Client) Publish

func (c *Client) Publish(ctx context.Context, e event.Envelope)

Publish an event.Query

func (*Client) SubMessages

func (c *Client) SubMessages(ctx context.Context) <-chan envelope.Message

SubMessages subcribes to message events

func (*Client) SubRooms

func (c *Client) SubRooms(ctx context.Context) <-chan remote.Payload

SubRooms subcribes to events

type Payload

type Payload struct {
	user.Token
	// contains filtered or unexported fields
}

Payload retrieved from redis

func (Payload) Type

func (p Payload) Type() string

Type implements interface

func (Payload) User

func (p Payload) User() user.Token

User implements interface

Directories

Path Synopsis
Package main contains examples for Redis
Package main contains examples for Redis

Jump to

Keyboard shortcuts

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