sse

package
v0.0.0-...-322bfae Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Channel <-chan interface{} // chan yielding the events
	// contains filtered or unexported fields
}

SSE Client retreiving events

func (Client) Quit

func (client Client) Quit()

Close the client

type Provider

type Provider struct {
	NewClients  <-chan Client      // chan yielding new clients
	EventStream chan<- interface{} // chan to send events to
}

Control Frontend to the SSE logic

func NewProvider

func NewProvider() Provider

Creates a new Provider and starts up the logic

Jump to

Keyboard shortcuts

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