Documentation
¶
Index ¶
- Constants
- type Session
- func (s *Session) AddCombat(timestamp time.Time)
- func (s *Session) AddGain(timestamp time.Time, percent float64)
- func (s *Session) AddLevelUp(timestamp time.Time)
- func (s *Session) AddPriorLevelProgress(percent float64, known bool)
- func (s *Session) Observe(logTime, observedAt time.Time)
- func (s *Session) SnapshotAtLatestLog() Snapshot
- func (s *Session) SnapshotLive(now time.Time) Snapshot
- type Snapshot
Constants ¶
View Source
const PauseThreshold = time.Minute
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession() *Session
func (*Session) AddLevelUp ¶
func (*Session) AddPriorLevelProgress ¶ added in v0.2.4
AddPriorLevelProgress supplies progress earned before the measured session. A level-up observed inside the session takes precedence over this baseline.
func (*Session) SnapshotAtLatestLog ¶
Click to show internal directories.
Click to hide internal directories.