Documentation
¶
Index ¶
- type Item
- type Service
- func (s Service) Create(templateName string, size int) ([]Item, error)
- func (s Service) CreateFromSeed(templateName string, size int, seedWorkspace string) ([]Item, error)
- func (s Service) EvictIfOverLimit(templateName string, maxItems int) (Item, bool, error)
- func (s Service) Hit(templateName, sessionID string, coldStartSavedMS, memoryMB int64) (Item, bool, error)
- func (s Service) Status() ([]Item, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
ID string
TemplateName string
SessionID string
WorkspacePath string
Frequency int64
ColdStartP95MS int64
SizeScore float64
Priority float64
HitCount int64
LastHitAt string
ColdStartSavedMS int64
MemoryMB int64
DiskBytes int64
EvictionReason string
Status string
CreatedAt string
UpdatedAt string
}
type Service ¶
func (Service) CreateFromSeed ¶
func (Service) EvictIfOverLimit ¶
Click to show internal directories.
Click to hide internal directories.