pathway

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 6 Imported by: 0

README

pathway

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadcastWriter

func BroadcastWriter(writers ...io.Writer) io.WriteCloser

BroadcastWriter creates a writer that duplicates its writes to all the provided writers, similar to the Unix tee(1) command.

Each write is written to each listed writer, one at a time. If a listed writer returns an error, that overall write operation continues and the offending writer is dropped from the list.

Only if all writers are dropped, the last error is returned at the end.

func PathHandler added in v0.1.1

func PathHandler(w http.ResponseWriter, r *http.Request)

Types

type Queue

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

Queue is where posts and gets can exchange transfers

type Transfer

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

Transfer holds a single tranferable connection to be read

func NewTransfer

func NewTransfer(contentlength string) (transfer Transfer, writer io.WriteCloser)

NewTransfer returns a ready to use Transfer and it's writer

Jump to

Keyboard shortcuts

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