ipc

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SocketAddr = "/tmp/baxs.sock"

Variables

This section is empty.

Functions

func Start

func Start(names ...string) error

func Stop

func Stop(force bool, names ...string) error

Types

type Op

type Op uint8
const (
	OpPs Op = iota
	OpStop
	OpStart
)

func (Op) String

func (i Op) String() string

type PsResult

type PsResult struct {
	Name   string
	Status string
	Pid    int
}

func Ps

func Ps() ([]PsResult, error)

type Request

type Request struct {
	Stop  *StopInput  `json:",omitempty"`
	Start *StartInput `json:",omitempty"`

	Op Op
}

type Response

type Response struct {
	Err string

	Ps []PsResult `json:",omitempty"`
}

type StartInput added in v0.2.1

type StartInput struct {
	Names []string
}

type StopInput added in v0.2.1

type StopInput struct {
	Names []string
	Force bool
}

Jump to

Keyboard shortcuts

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