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:

https://gist.github.com/schmohlio/d7bdb255ba61d3f5e51a512a7c0d6a85

Index

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.