publisher

package
v0.2.112 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSyncPublisher

type AppSyncPublisher[In encoding.BinaryMarshaler] struct {
	*task.Task
	// contains filtered or unexported fields
}

Forwards messages to Redis

func NewAppSyncPublisher

func NewAppSyncPublisher[In encoding.BinaryMarshaler](config *config.Config, name string) (self *AppSyncPublisher[In])

func (*AppSyncPublisher[In]) WithChannelName

func (self *AppSyncPublisher[In]) WithChannelName(v string) *AppSyncPublisher[In]

func (*AppSyncPublisher[In]) WithInputChannel

func (self *AppSyncPublisher[In]) WithInputChannel(v chan In) *AppSyncPublisher[In]

func (*AppSyncPublisher[In]) WithMonitor

func (self *AppSyncPublisher[In]) WithMonitor(monitor monitoring.Monitor) *AppSyncPublisher[In]

type Args

type Args struct {
	Name string `json:"name"`
	Data string `json:"data"`
}

type RedisPublisher

type RedisPublisher[In encoding.BinaryMarshaler] struct {
	*task.Task
	// contains filtered or unexported fields
}

Forwards messages to Redis

func NewRedisPublisher

func NewRedisPublisher[In encoding.BinaryMarshaler](config *config.Config, redisConfig config.Redis, name string) (self *RedisPublisher[In])

func (*RedisPublisher[In]) WithChannelName

func (self *RedisPublisher[In]) WithChannelName(v string) *RedisPublisher[In]

func (*RedisPublisher[In]) WithDiscardWhenDisconnected added in v0.1.276

func (self *RedisPublisher[In]) WithDiscardWhenDisconnected(v bool) *RedisPublisher[In]

func (*RedisPublisher[In]) WithInputChannel

func (self *RedisPublisher[In]) WithInputChannel(v chan In) *RedisPublisher[In]

func (*RedisPublisher[In]) WithMonitor

func (self *RedisPublisher[In]) WithMonitor(monitor monitoring.Monitor, idx int) *RedisPublisher[In]

Jump to

Keyboard shortcuts

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