koma-bot.v0: gopkg.in/kerwindena/koma-bot.v0/sse Index | Files

package sse

import "gopkg.in/kerwindena/koma-bot.v0/sse"


Package Files

channelHandling.go clientsIter.go sse.go

type Client Uses

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

SSE Client retreiving events

func (Client) Quit Uses

func (client Client) Quit()

Close the client

type Provider Uses

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 Uses

func NewProvider() Provider

Creates a new Provider and starts up the logic

Package sse imports 3 packages (graph). Updated 2018-11-06. Refresh now. Tools for package owners.