Documentation
¶
Index ¶
- Constants
- func CleanupStale(dirPath string, cleaner Cleaner, log *slog.Logger) error
- func FromInstanceDir(dirPath string) (int, uuid.UUID, error)
- func InstanceDir(dirPath string, pid int, id uuid.UUID) string
- func Lock(dirPath string) (*os.File, error)
- func ProcRunning(pid int) (bool, error)
- type Cleaner
- type State
- func (s *State) AddID(id string) error
- func (s *State) CleanIDs(ctx context.Context, cleaner Cleaner)
- func (s *State) Dir() string
- func (s *State) Finalize(cleaner Cleaner) error
- func (s *State) IDs() []string
- func (s *State) Remove() error
- func (s *State) RemoveID(id string) error
- func (s *State) Time() time.Time
Constants ¶
View Source
const NameSeparator = "."
Variables ¶
This section is empty.
Functions ¶
func ProcRunning ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.