gold: github.com/aunum/gold/pkg/v1/ui/sse Index | Files

package sse

import "github.com/aunum/gold/pkg/v1/ui/sse"

Package sse provides server sent events to the agent dashboard.

Index

Package Files

broker.go

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.