/
uzer_007
/
Rixea
Обзор
Документация
Войти
/
uzer_007
/
Rixea
Код
Запросы
0
Задачи
Вики
Пакеты
5
Релизы
2
CI/CD
Аналитика
Безопасность
master
modules/process/process.go
37 строк
776 B
uzer_007
feat: первая версия Rixea
02 авг 2026, 22:16
02 авг 2026, 22:16
d4f7504
Код
Авторство
О чём код?
// Copyright 2026 Uzer_007. All rights reserved. // SPDX-License-Identifier: MIT package process import ( "time" ) var ( SystemProcessType = "system" RequestProcessType = "request" NormalProcessType = "normal" NoneProcessType = "none" ) // process represents a working process inheriting from Rixea. type process struct { PID IDType // Process ID, not system one. ParentPID IDType Description string Start time.Time Cancel CancelCauseFunc Type string } // ToProcess converts a process to a externally usable Process func (p *process) toProcess() *Process { process := &Process{ PID: p.PID, ParentPID: p.ParentPID, Description: p.Description, Start: p.Start, Type: p.Type, } return process }