Documentation
¶
Index ¶
- type ActivityID
- type Date
- type Entry
- type EntrySet
- func (set *EntrySet) ActivitiesOn(ds ...Date) iter.Seq[ActivityID]
- func (set *EntrySet) Allocate(date Date, dt time.Duration, ids []ActivityID)
- func (set *EntrySet) AllocateProportionally(date Date, dt time.Duration, ids []ActivityID)
- func (set *EntrySet) EntriesOn(ds ...Date) iter.Seq[*Entry]
- func (set *EntrySet) Entry(id ActivityID, date Date) *Entry
- func (set *EntrySet) GC(firstKept Date)
- func (set *EntrySet) ReadFrom(r io.Reader) (_ int64, err error)
- func (set *EntrySet) Sum(ds ...Date) time.Duration
- func (set *EntrySet) WriteTo(w io.Writer) (_ int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityID ¶
type ActivityID struct {
// contains filtered or unexported fields
}
func NewActivityID ¶
func NewActivityID(raw string) ActivityID
func (ActivityID) Raw ¶
func (id ActivityID) Raw() string
func (ActivityID) String ¶
func (id ActivityID) String() string
type Date ¶
A Date is a Gregorian calendar date (within a reasonably interesting time-range).
A zero value Date does not represent a valid value.
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
func (Entry) ActivityID ¶
func (e Entry) ActivityID() ActivityID
type EntrySet ¶
type EntrySet struct {
// contains filtered or unexported fields
}
func (*EntrySet) ActivitiesOn ¶
func (set *EntrySet) ActivitiesOn(ds ...Date) iter.Seq[ActivityID]
func (*EntrySet) Allocate ¶
func (set *EntrySet) Allocate(date Date, dt time.Duration, ids []ActivityID)
func (*EntrySet) AllocateProportionally ¶
func (set *EntrySet) AllocateProportionally(date Date, dt time.Duration, ids []ActivityID)
Click to show internal directories.
Click to hide internal directories.