httphandler

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventSourceServer

type EventSourceServer struct {

	// Events are pushed to this channel by the main events-gathering routine
	Notifier chan []byte
	// contains filtered or unexported fields
}

A Broker holds open client connections, listens for incoming events on its Notifier channel and broadcast event data to all registered connections

func NewEventSourceServer

func NewEventSourceServer() (server *EventSourceServer)

func (*EventSourceServer) ServeHTTP

func (server *EventSourceServer) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL