ipc

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 5 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(names ...string) error

Types

type Op

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

func (Op) String

func (op Op) String() string

type PsResult

type PsResult struct {
	Name   string
	Pid    int
	Status string
}

func Ps

func Ps() ([]PsResult, error)

type Request

type Request struct {
	Op Op

	// for start/stop
	Names []string `json:",omitempty"`
}

type Response

type Response struct {
	Err string

	// for ps
	Ps []PsResult `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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