stream

package
v0.0.0-...-c92b3b0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package stream has api stream utility methods that components can use for directing output to a stream receiver

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStreamFunc

func GetStreamFunc(messageReceiverFunc func() MessageReceiver, streamType, agentType string) func(w http.ResponseWriter, r *http.Request)

GetStreamFunc returns a handlerfunc that handles request to stream output to the desired receiver

Types

type MessageReceiver

type MessageReceiver interface {
	SetEnabled(e bool) bool
	Filter(filters *diagnostic.Filters, done <-chan struct{}) <-chan string
}

MessageReceiver is an exported interface for a valid receiver of streamed output

Jump to

Keyboard shortcuts

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