koma-bot: github.com/thelegy/koma-bot/sse Index | Files

package sse

import "github.com/thelegy/koma-bot/sse"

Index

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) and is imported by 3 packages. Updated 2018-11-03. Refresh now. Tools for package owners.