publishredis

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 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 PublishRedis

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

func New

func New(logger ytfeed.Logger, channel string, opts *redis.Options) (pr *PublishRedis)

func (*PublishRedis) DataHandler

func (p *PublishRedis) DataHandler(ctx context.Context, d *ytfeed.Data)

type RedisPublisher

type RedisPublisher interface {
	Publish(ctx context.Context, channel string, message interface{}) *redis.IntCmd
}

Jump to

Keyboard shortcuts

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