process

package
v0.6.0-rc15 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(uuid string) error

Delete deletes the process file with the given UUID if it exists

Types

type Info

type Info struct {
	Port int    `json:"port"`
	FQMN string `json:"fqmn"`
	PID  int    `json:"pid"`
}

Info is a struct that is written to a file that describes our own process

func Find

func Find(uuid string) (*Info, error)

Find finds a process info file with the given UUID

func NewInfo

func NewInfo(port int, FQMN string) *Info

NewInfo creates an Info for the current process

func (*Info) Write

func (p *Info) Write(uuid string) error

Write writes the Info to disk

Jump to

Keyboard shortcuts

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