receiver

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2015 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReceiveStrategy

type ReceiveStrategy interface {
	CanReceive(message []byte) bool
	Receive(message []byte) message.MessageInterface
}

type ReceiveStrategyChain

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

func NewReceiveStrategyChain

func NewReceiveStrategyChain(strategies []ReceiveStrategy) *ReceiveStrategyChain

func (*ReceiveStrategyChain) CanReceive

func (c *ReceiveStrategyChain) CanReceive(message []byte) bool

func (*ReceiveStrategyChain) Receive

func (c *ReceiveStrategyChain) Receive(message []byte) message.MessageInterface

type Receiver

type Receiver interface {
	Receive()
}

type ReceiverPool

type ReceiverPool struct {
	Receiver
	// contains filtered or unexported fields
}

func NewReceiverPool

func NewReceiverPool(receivers []Receiver) *ReceiverPool

func (*ReceiverPool) AddReceiver

func (p *ReceiverPool) AddReceiver(receiver Receiver)

func (*ReceiverPool) Receive

func (p *ReceiverPool) Receive()

func (*ReceiverPool) Size

func (p *ReceiverPool) Size() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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