relay

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 2 Imported by: 0

README

Relay

A relay passes messages between different services, these services must accept an event and return an event.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type R

type R interface {
	// Do will pass messages through an intermediary that may perform operations on the data.
	// ctx: context will control the flow of the application.
	// outbound: will receive messages from the current applications.
	// inbound: will receive messages from the relay source.
	RDo(ctx context.Context, outbound <-chan []events.Event, inbound chan<- []events.Event) error
	ID() string // ID returns a human readable identifier for this relay.
}

R (Relay) passes events from a source to a destination via any intermediary.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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