gochan

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilContext  = errors.New("nil Context")
	ErrNilMetadata = errors.New("nil Metadata")
)

Functions

This section is empty.

Types

type SendReceiver

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

func New

func New() *SendReceiver

func (*SendReceiver) Close

func (sr *SendReceiver) Close(_ context.Context)

func (*SendReceiver) Receive

func (sr *SendReceiver) Receive(ctx context.Context, processor eventbus.Processor) error

func (*SendReceiver) Send

func (sr *SendReceiver) Send(ctx context.Context, meta *event.Metadata, data []byte) error

func (*SendReceiver) Setup

func (sr *SendReceiver) Setup(ctx context.Context, serviceName string, infos ...eventbus.ServiceInfo) error

Jump to

Keyboard shortcuts

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