stream

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pusher

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

func StartPusher

func StartPusher(w http.ResponseWriter) (*Pusher, error)

func (*Pusher) Push

func (p *Pusher) Push(data interface{}) error

type Receiver

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

func StartReceiver

func StartReceiver(src io.Reader) *Receiver

func (*Receiver) Recieve

func (r *Receiver) Recieve(into interface{}) error

type WriterFlusher

type WriterFlusher interface {
	http.Flusher
	io.Writer
}

Jump to

Keyboard shortcuts

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