egress

package
v0.0.0-...-d500c8a Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextDone

func ContextDone(ctx context.Context) bool

Types

type DiodeWriter

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

func NewDiodeWriter

func NewDiodeWriter(
	ctx context.Context,
	wc WriteCloser,
	alerter gendiodes.Alerter,
	wg WaitGroup,
) *DiodeWriter

func (*DiodeWriter) Write

func (d *DiodeWriter) Write(env *loggregator_v2.Envelope) error

Write writes an envelope into the diode. This can not fail.

type WaitGroup

type WaitGroup interface {
	Add(delta int)
	Done()
}

type WriteCloser

type WriteCloser interface {
	Write(*loggregator_v2.Envelope) error
	io.Closer
}

type Writer

type Writer interface {
	Write(*loggregator_v2.Envelope) error
}

Directories

Path Synopsis
v1
v1fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
v2
v2fakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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