stream

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2016 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package stream provides types that make it easier to perform streaming io.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Heartbeat

func Heartbeat(outStream io.Writer, interval time.Duration) chan struct{}

Heartbeat sends the null character periodically, to keep the connection alive.

Example
w := os.Stdout
defer close(Heartbeat(w, time.Second)) // close to cleanup resources
Output:

Types

This section is empty.

Directories

Path Synopsis
Package http provides streaming implementations of various net/http types.
Package http provides streaming implementations of various net/http types.

Jump to

Keyboard shortcuts

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