virtualnotify

package module
v0.0.0-...-ee71430 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: Unlicense Imports: 8 Imported by: 1

README

VirtualNotify

Send custom signals. Built for cross-platform support

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = os.ErrClosed
View Source
var ErrTimeout = fmt.Errorf("timeout")
View Source
var TempDir = os.TempDir()

Functions

func WaitForEvent

func WaitForEvent(ns string, eventName string) error

Types

type Event

type Event struct {
	Name string
	// contains filtered or unexported fields
}

type VirtualNotify

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

func New

func New(ns string) *VirtualNotify

func (*VirtualNotify) Cleanup

func (p *VirtualNotify) Cleanup()

func (*VirtualNotify) Close

func (p *VirtualNotify) Close()

func (*VirtualNotify) EventsChan

func (p *VirtualNotify) EventsChan() <-chan Event

func (*VirtualNotify) Next

func (p *VirtualNotify) Next() (Event, error)

func (*VirtualNotify) Publish

func (p *VirtualNotify) Publish(eventName string) error

func (*VirtualNotify) PublishTimeout

func (p *VirtualNotify) PublishTimeout(eventName string, timeout time.Duration) error

func (*VirtualNotify) Run

func (p *VirtualNotify) Run(interval time.Duration)

func (*VirtualNotify) Subscribe

func (p *VirtualNotify) Subscribe(eventName string) error

func (*VirtualNotify) Unsubscribe

func (p *VirtualNotify) Unsubscribe(eventName string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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