gormon: github.com/austinov/gormon/monitor/web Index | Files

package web

import "github.com/austinov/gormon/monitor/web"

This SSE broker taken from @schmohlio with a few changes:



Package Files

sse.go web.go

func New Uses

func New(cfg c.Config) m.Monitor

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

func NewServer Uses

func NewServer() (broker *Broker)

func (*Broker) Stop Uses

func (broker *Broker) Stop()

Package web imports 9 packages (graph) and is imported by 1 packages. Updated 2020-02-08. Refresh now. Tools for package owners.