stream

package
v1.22.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 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