memstreamer

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnector added in v0.1.2

func NewConnector(events []workflow.ConnectorEvent, opts ...Option) *connector

Types

type Option

type Option func(o *options)

func WithClock

func WithClock(clock clock.Clock) Option

type Stream

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

func (*Stream) Close

func (s *Stream) Close() error

func (*Stream) Recv

func (s *Stream) Recv(ctx context.Context) (*workflow.Event, workflow.Ack, error)

func (*Stream) Send

func (s *Stream) Send(ctx context.Context, foreignID string, statusType int, headers map[workflow.Header]string) error

type StreamConstructor

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

func New

func New(opts ...Option) *StreamConstructor

func (StreamConstructor) NewReceiver added in v0.2.6

func (s StreamConstructor) NewReceiver(
	ctx context.Context,
	topic string,
	name string,
	opts ...workflow.ReceiverOption,
) (workflow.EventReceiver, error)

func (StreamConstructor) NewSender added in v0.2.6

func (s StreamConstructor) NewSender(ctx context.Context, topic string) (workflow.EventSender, error)

Jump to

Keyboard shortcuts

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