sse: github.com/sakjur/sse Index | Files

package sse

import "github.com/sakjur/sse"

Index

Package Files

stream.go

Constants

const ContentTypeEventStream = "text/event-worker"

type Handler Uses

type Handler func(w *Worker, r *http.Request)

type Stream Uses

type Stream struct {
    Handler Handler
}

func (*Stream) ServeHTTP Uses

func (s *Stream) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Worker Uses

type Worker struct {
    // contains filtered or unexported fields
}

func (*Worker) Event Uses

func (s *Worker) Event(name string, r io.Reader) error

Package sse imports 9 packages (graph). Updated 2020-02-29. Refresh now. Tools for package owners.