Documentation
¶
Overview ¶
Package pipes creates a FIFO pipe and provides functions to read/write to it. It probably only works on Linux, can't confirm if it will work on macOS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pipe ¶
type Pipe struct {
// contains filtered or unexported fields
}
Pipe is a FIFO pipe.
func New ¶
New returns a pipe instance. The path argument is the place where the FIFO pipe will be created.
func (*Pipe) Create ¶
Create creates a new FIFO pipe using syscall.Mkfifo(). In case of error the function returns an error
func (*Pipe) Exists ¶ added in v0.2.0
Exists is wrapper around os.stat() to check if the pipe file exists.
func (*Pipe) Remove ¶
Remove removes the pipe file. In case of failure it returns the error provided by os.Remove()
Click to show internal directories.
Click to hide internal directories.