diodes

package
v0.0.0-...-57f4fd1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManyToOneEnvelopeV2

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

ManyToOneEnvelopeV2 diode is optimal for many writers and a single reader.

func NewManyToOneEnvelopeV2

func NewManyToOneEnvelopeV2(size int, alerter gendiodes.Alerter) *ManyToOneEnvelopeV2

func (*ManyToOneEnvelopeV2) Next

func (d *ManyToOneEnvelopeV2) Next() *v2.Envelope

func (*ManyToOneEnvelopeV2) Set

func (d *ManyToOneEnvelopeV2) Set(data *v2.Envelope)

func (*ManyToOneEnvelopeV2) TryNext

func (d *ManyToOneEnvelopeV2) TryNext() (*v2.Envelope, bool)

type OneToOne

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

OneToOne diode is optimized for a single writer and a single reader

func NewOneToOne

func NewOneToOne(size int, alerter gendiodes.Alerter, opts ...gendiodes.PollerConfigOption) *OneToOne

func (*OneToOne) Next

func (d *OneToOne) Next() *loggregator_v2.Envelope

func (*OneToOne) Set

func (d *OneToOne) Set(data *loggregator_v2.Envelope)

Jump to

Keyboard shortcuts

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