Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EntryBuilder ¶
type EntryBuilder struct {
Entry
}
func NewEntryBuilder ¶
func NewEntryBuilder(avatar image.Image, color color.Color) *EntryBuilder
func (*EntryBuilder) AddSection ¶
func (b *EntryBuilder) AddSection(start, end time.Time) *EntryBuilder
func (*EntryBuilder) Build ¶
func (b *EntryBuilder) Build() Entry
type Section ¶
Section represents a time Section in a timeline entry. It is defined by a start and end time.
type TimelineBuilder ¶
type TimelineBuilder struct {
Timeline
}
func NewTimelineBuilder ¶
func NewTimelineBuilder(start, end time.Time) *TimelineBuilder
func (*TimelineBuilder) AddEntries ¶
func (b *TimelineBuilder) AddEntries(entries ...Entry) *TimelineBuilder
func (*TimelineBuilder) Build ¶
func (b *TimelineBuilder) Build() Timeline
func (*TimelineBuilder) SetIndicator ¶
func (b *TimelineBuilder) SetIndicator(indicator time.Time) *TimelineBuilder
Click to show internal directories.
Click to hide internal directories.