go-rl: github.com/pbarker/go-rl/pkg/v1/ui/sse Index | Files

package sse

import "github.com/pbarker/go-rl/pkg/v1/ui/sse"

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). Updated 2020-09-15. Refresh now. Tools for package owners.