Documentation
¶
Index ¶
- Constants
- type DoneTime
- type Event
- type Probe
- type ProbePosition
- type Session
- func (s Session) Chart() (*charts.Line, error)
- func (s Session) ChartData() [][]opts.LineData
- func (s *Session) FromText(input []byte) error
- func (s Session) GetID() string
- func (s *Session) LoadData(r io.Reader) error
- func (s *Session) LoadDataFromFile(csvFile string) error
- func (s Session) TimeBounds() (time.Time, time.Time)
- func (s *Session) Write(p []byte) (int, error)
- type SessionDate
- type SessionName
- type SessionPart
- type SessionType
- type SessionTypeVal
- type Stage
- type ThermoworksData
Constants ¶
View Source
const ( ProbePositionNone = iota ProbePosition1 ProbePosition2 ProbePosition3 ProbePosition4 ProbePosition5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
func (Event) AddToSession ¶
type ProbePosition ¶
type ProbePosition uint
func (*ProbePosition) UnmarshalJSON ¶
func (pp *ProbePosition) UnmarshalJSON(input []byte) error
func (*ProbePosition) UnmarshalText ¶
func (pp *ProbePosition) UnmarshalText(input []byte) error
type Session ¶
type Session struct {
ID babyapi.ID
Name string
Type SessionType
Date time.Time
StartTime time.Time
Probes []Probe
Stages []Stage
Events []Event
Data []ThermoworksData
UploadedAt time.Time
}
func (*Session) LoadDataFromFile ¶
func (Session) TimeBounds ¶
TimeBounds returns the earliest and latest Events or Stages to set the bounds on the Chart
type SessionDate ¶
func (SessionDate) AddToSession ¶
func (sd SessionDate) AddToSession(s *Session)
type SessionName ¶
type SessionName string
func (SessionName) AddToSession ¶
func (sn SessionName) AddToSession(s *Session)
type SessionPart ¶
type SessionPart interface {
AddToSession(*Session)
}
SessionPart is an interface that allows any parsed type to be applied to a Session
type SessionType ¶ added in v0.3.0
type SessionType string
SessionType represents the type of cooking session
const ( SessionTypeNone SessionType = "" SessionTypeCoffee SessionType = "coffee" SessionTypeBread SessionType = "bread" SessionTypeBBQ SessionType = "bbq" SessionTypeOther SessionType = "other" )
type SessionTypeVal ¶ added in v0.3.0
type SessionTypeVal SessionType
func (SessionTypeVal) AddToSession ¶ added in v0.3.0
func (st SessionTypeVal) AddToSession(s *Session)
type Stage ¶
func (Stage) AddToSession ¶
type ThermoworksData ¶
func (ThermoworksData) GetProbeData ¶
func (td ThermoworksData) GetProbeData(pos ProbePosition) float64
Click to show internal directories.
Click to hide internal directories.