stream

package
v1.24.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 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