domain

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsageRecord

type UsageRecord struct {
	ID             string
	OrganizationID string
	GameServerID   string
	NodeID         string
	RecordedAt     time.Time

	CPUSeconds    float64
	MemoryGBHours float64
	NetworkInMB   float64
	NetworkOutMB  float64
	DiskReadMB    float64
	DiskWriteMB   float64
}

UsageRecord is a raw metering event produced by daemon heartbeats.

type UsageSummary

type UsageSummary struct {
	OrganizationID string
	PeriodStart    time.Time
	PeriodEnd      time.Time
	ServerHours    float64
	BandwidthGB    float64
	StorageGB      float64
	EstimatedCost  int // cents
}

UsageSummary aggregates metered resource consumption for a billing period.

Jump to

Keyboard shortcuts

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