Documentation
¶
Index ¶
- func Dequeue[T any](k *Dequeuer, cat string, codec Decoder[T]) (<-chan swarm.Msg[T], chan<- swarm.Msg[T])
- func Enqueue[T any](k *Enqueuer, cat string, codec Encoder[T]) (chan<- T, <-chan T)
- type Bridge
- type Cathode
- type Decoder
- type Dequeuer
- type Emitter
- type Encoder
- type Enqueuer
- type Kernel
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bridge ¶ added in v0.20.0
type Bridge struct {
// contains filtered or unexported fields
}
Bridge Lambda's main function to Cathode interface
func (*Bridge) Ack ¶ added in v0.20.0
Acknowledge processed message, allowing lambda handler progress
func (*Bridge) Ask ¶ added in v0.20.0
Ask converts input of Lambda handler to the context of the kernel
type Cathode ¶
type Cathode interface { Ack(ctx context.Context, digest string) error Err(ctx context.Context, digest string, err error) error Ask(ctx context.Context) ([]swarm.Bag, error) }
Cathode defines on-the-wire protocol for swarm.Bag, covering the ingress.
type Dequeuer ¶ added in v0.20.0
type Dequeuer struct { sync.WaitGroup sync.RWMutex // Kernel configuration Config swarm.Config // Cathode is the reader port on message broker Cathode Cathode // contains filtered or unexported fields }
func NewDequeuer ¶ added in v0.20.0
Creates instance of broker reader
type Enqueuer ¶ added in v0.20.0
type Enqueuer struct { sync.WaitGroup // Kernel configuration Config swarm.Config // Emitter is the writer port on message broker Emitter Emitter // contains filtered or unexported fields }
Messaging Egress port
func NewEnqueuer ¶ added in v0.20.0
Creates instance of broker writer
Click to show internal directories.
Click to hide internal directories.