ipc

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoServer indicates no running tmus instance was found.
	ErrNoServer = errors.New("no running tmus instance")
	// ErrAlreadyRunning indicates a running tmus instance already owns the IPC endpoint.
	ErrAlreadyRunning = errors.New("tmus instance already running")
	// ErrNotSupported indicates IPC is not supported on this platform.
	ErrNotSupported = errors.New("ipc not supported")
)

Functions

func Send

func Send(paths []string) error

Send tries to forward paths to an existing tmus instance. Returns ErrNoServer if no instance is running.

Types

type Server

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

func StartServer

func StartServer(appRef *core.App) (*Server, error)

StartServer listens for IPC requests to append tracks.

func (*Server) Close

func (s *Server) Close() error

Close shuts down the IPC listener.

Jump to

Keyboard shortcuts

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