goredis

package
v0.0.0-...-c1a9e9f Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*redis.Client
}

func NewClient

func NewClient(serverURL string) (*Client, error)

func (*Client) Publisher

func (c *Client) Publisher(_ context.Context, channelName string, _ *runRedis.ChannelBindings) (runRedis.Publisher, error)

func (*Client) Subscriber

func (c *Client) Subscriber(ctx context.Context, channelName string, _ *runRedis.ChannelBindings) (runRedis.Subscriber, error)

type EnvelopeIn

type EnvelopeIn struct {
	*redis.Message
	// contains filtered or unexported fields
}

func NewEnvelopeIn

func NewEnvelopeIn(msg *redis.Message) *EnvelopeIn

func (*EnvelopeIn) Headers

func (e *EnvelopeIn) Headers() run.Headers

func (*EnvelopeIn) Read

func (e *EnvelopeIn) Read(p []byte) (n int, err error)

type EnvelopeOut

type EnvelopeOut struct {
	*strings.Builder
	// contains filtered or unexported fields
}

func NewEnvelopeOut

func NewEnvelopeOut() *EnvelopeOut

func (*EnvelopeOut) AsAny

func (e *EnvelopeOut) AsAny() any

func (*EnvelopeOut) ResetPayload

func (e *EnvelopeOut) ResetPayload()

func (*EnvelopeOut) SetBindings

func (e *EnvelopeOut) SetBindings(_ runRedis.MessageBindings)

func (*EnvelopeOut) SetContentType

func (e *EnvelopeOut) SetContentType(contentType string)

func (*EnvelopeOut) SetHeaders

func (e *EnvelopeOut) SetHeaders(headers run.Headers)

type ImplementationRecord

type ImplementationRecord interface {
	AsAny() any
}

type PublishChannel

type PublishChannel struct {
	Client *redis.Client
	Name   string
}

func (PublishChannel) Close

func (p PublishChannel) Close() error

func (PublishChannel) Send

func (p PublishChannel) Send(ctx context.Context, envelopes ...runRedis.EnvelopeWriter) error

type SubscriberChannel

type SubscriberChannel struct {
	*redis.PubSub
	Name string
}

func (SubscriberChannel) Receive

func (s SubscriberChannel) Receive(ctx context.Context, cb func(envelope runRedis.EnvelopeReader)) error

Jump to

Keyboard shortcuts

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