Initial project snapshot

This commit is contained in:
2026-04-28 22:29:50 +03:00
commit 8ba0561f4f
365 changed files with 91832 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
package session
import "time"
type State string
const (
StateStarting State = "starting"
StateActive State = "active"
StateDetached State = "detached"
StateReconnecting State = "reconnecting"
StateTerminated State = "terminated"
StateFailed State = "failed"
)
type SessionDescriptor struct {
ID string `json:"id"`
ResourceID string `json:"resource_id"`
WorkerID string `json:"worker_id"`
State State `json:"state"`
ControllerID string `json:"controller_id"`
HeartbeatTTL time.Duration `json:"heartbeat_ttl"`
DetachGraceTime time.Duration `json:"detach_grace_time"`
}