redis

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChannelOptions = make([]redis.ChannelOption, 0)

Functions

func CreateRedisTransporter

func CreateRedisTransporter(options RedisOptions) transit.Transport

Types

type RedisOptions

type RedisOptions struct {
	Addr           string
	PassWord       string
	DB             int
	Name           string
	Logger         *log.Entry
	Serializer     serializer.Serializer
	ValidateMsg    transit.ValidateMsgFunc
	AllowReconnect bool
	ReconnectWait  time.Duration
	MaxReconnect   int
}

type RedisTransporter

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

func (*RedisTransporter) Connect

func (t *RedisTransporter) Connect() chan error

func (*RedisTransporter) Disconnect

func (t *RedisTransporter) Disconnect() chan error

func (*RedisTransporter) Publish

func (t *RedisTransporter) Publish(command, nodeID string, message moleculer.Payload)

func (*RedisTransporter) SetNodeID

func (t *RedisTransporter) SetNodeID(nodeID string)

func (*RedisTransporter) SetPrefix

func (t *RedisTransporter) SetPrefix(prefix string)

func (*RedisTransporter) SetSerializer

func (t *RedisTransporter) SetSerializer(serializer serializer.Serializer)

func (*RedisTransporter) Subscribe

func (t *RedisTransporter) Subscribe(command, nodeID string, handler transit.TransportHandler)

Jump to

Keyboard shortcuts

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