gold: Index | Files

package sse

import ""

Package sse provides server sent events to the agent dashboard.


Package Files


type Broker Uses

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 Uses

func NewBroker() (broker *Broker)

NewBroker creates a new broker.

func (*Broker) Handler Uses

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

Handler for the broker

Package sse imports 5 packages (graph) and is imported by 2 packages. Updated 2020-03-26. Refresh now. Tools for package owners.