Documentation
¶
Overview ¶
Arithmetic of the usage counters of sessions: what a session took since an earlier reading, and its own model calls apart from those of its helper models
Index ¶
- func Empty(used *sessionsv1.Usage) bool
- func Since(now, before *sessionsv1.Usage) *sessionsv1.Usage
- func Split(whole *sessionsv1.Usage, helpers map[string]*sessionsv1.Usage) (*sessionsv1.Usage, map[string]*sessionsv1.Usage, *sessionsv1.Usage)
- func Sum(first *sessionsv1.Usage, rest ...*sessionsv1.Usage) *sessionsv1.Usage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Since ¶
func Since(now, before *sessionsv1.Usage) *sessionsv1.Usage
What now holds past before: each counter and cost less before's, the status, source and pricing of the cost those of now. All of now when before is nil
func Split ¶
func Split(whole *sessionsv1.Usage, helpers map[string]*sessionsv1.Usage) (*sessionsv1.Usage, map[string]*sessionsv1.Usage, *sessionsv1.Usage)
A session's whole usage split by who made the calls: its own model calls, the turns the voice mode model ran counted among them. What each task of the helper models took, the tasks that took nothing left out. And the helpers' together. The whole counts the helpers' calls too
func Sum ¶
func Sum(first *sessionsv1.Usage, rest ...*sessionsv1.Usage) *sessionsv1.Usage
Every counter and cost of the usages added up, the status, source and pricing of the cost those of the first
Types ¶
This section is empty.