fifosync

package
v1.6.36 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package fifosync provides a pattern on Unix-like operating systems for synchronizing across processes using Unix FIFOs (named pipes).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trigger

type Trigger interface {
	// Name returns the name of the trigger
	Name() string
	// Trigger triggers another process to proceed.
	Trigger() error
}

Trigger is a FIFO which is used to signal another process to proceed.

func NewTrigger

func NewTrigger(name string, mode uint32) (Trigger, error)

NewTrigger creates a new Trigger

type Waiter

type Waiter interface {
	// Name returns the name of the waiter
	Name() string
	// Wait waits for a trigger from another process.
	Wait() error
}

Waiter is a FIFO which is used to wait for trigger provided by another process.

func NewWaiter

func NewWaiter(name string, mode uint32) (Waiter, error)

NewWaiter creates a new Waiter

Jump to

Keyboard shortcuts

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