fifo

package
v0.9.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: MPL-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package fifo implements functions to create and open a fifo for inter-process communication in an OS agnostic way. A few assumptions should be made when using this package. First, New() must always be called before Open(). Second Open() returns an io.ReadWriteCloser that is only connected with the io.ReadWriteCloser returned from New().

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsClosedErr

func IsClosedErr(err error) bool

func New

func New(path string) (io.ReadWriteCloser, error)

New creates a fifo at the given path and returns an io.ReadWriteCloser for it The fifo must not already exist

func Open

func Open(path string) (io.ReadWriteCloser, error)

Open opens a fifo that already exists and returns an io.ReadWriteCloser for it

func Remove

func Remove(path string) error

Remove a fifo that already exists at a given path

Types

This section is empty.

Jump to

Keyboard shortcuts

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