memstreamer

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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, recordID int64, 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) NewConsumer

func (s StreamConstructor) NewConsumer(topic string, name string, opts ...workflow.ConsumerOption) workflow.Consumer

func (StreamConstructor) NewProducer

func (s StreamConstructor) NewProducer(topic string) workflow.Producer

Jump to

Keyboard shortcuts

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