redis_adapter

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisAdapter

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

func New

func New(c *redis.Options) *RedisAdapter

func NewConn

func NewConn(c *redis.Client) *RedisAdapter

func (*RedisAdapter) Close

func (red *RedisAdapter) Close() error

func (*RedisAdapter) Listener

func (red *RedisAdapter) Listener(ctx context.Context, fn func(discourse.Message) error, cfgSubscription discourse.Subscription) error

func (*RedisAdapter) Publish

func (red *RedisAdapter) Publish(ctx context.Context, message discourse.Publisher) error

Jump to

Keyboard shortcuts

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