utils

package
v0.0.0-...-0c426a5 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer []*beam.Message

func (*Buffer) Close

func (buf *Buffer) Close() error

func (*Buffer) Send

func (buf *Buffer) Send(msg *beam.Message) (beam.Receiver, error)

type Queue

type Queue struct {
	*beam.PipeSender
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue(dst beam.Sender, size int) *Queue

type StackSender

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

StackSender forwards beam messages to a dynamic list of backend receivers. New backends are stacked on top. When a message is sent, each backend is tried until one succeeds. Any failing backends encountered along the way are removed from the queue.

func NewStackSender

func NewStackSender() *StackSender

func (*StackSender) Add

func (s *StackSender) Add(dst beam.Sender) *StackSender

func (*StackSender) Close

func (s *StackSender) Close() error

func (*StackSender) Len

func (s *StackSender) Len() int

func (*StackSender) Send

func (s *StackSender) Send(msg *beam.Message) (ret beam.Receiver, err error)

func (*StackSender) String

func (s *StackSender) String() string

Jump to

Keyboard shortcuts

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