sse

package
v0.0.0-...-225e849 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package sse provides server sent events to the agent dashboard.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {

	// Events are pushed to this channel by the main events-gathering routine
	Notifier chan []byte
	// contains filtered or unexported fields
}

Broker of events.

func NewBroker

func NewBroker() (broker *Broker)

NewBroker creates a new broker.

func (*Broker) Handler

func (broker *Broker) Handler(rw http.ResponseWriter, req *http.Request)

Handler for the broker

Jump to

Keyboard shortcuts

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