Documentation
¶
Index ¶
- type Service
- type ServiceData
- func (m *ServiceData) IsRunning() bool
- func (m *ServiceData) Observable() rxgo.Observable
- func (m *ServiceData) RunningTimesheet() models.Timesheet
- func (m *ServiceData) SetRunningTimesheet(timesheet models.Timesheet)
- func (m *ServiceData) SetTimesheetError(err error)
- func (m *ServiceData) SetTimesheetStatus(status int)
- func (m *ServiceData) Start(startChannel chan bool)
- func (m *ServiceData) Stop()
- func (m *ServiceData) TimesheetError() error
- func (m *ServiceData) TimesheetStatus() int
- type ServiceUpdateEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Start(startChannel chan bool) Stop() IsRunning() bool Observable() rxgo.Observable RunningTimesheet() models.Timesheet SetRunningTimesheet(timesheet models.Timesheet) TimesheetStatus() int SetTimesheetStatus(status int) TimesheetError() error SetTimesheetError(err error) }
Service is the interface to the monitor service functions
func NewService ¶
NewService returns an initialized Service using the supplied quit channel
type ServiceData ¶
type ServiceData struct {
// contains filtered or unexported fields
}
ServiceData is the main data struct of the Service
func (*ServiceData) IsRunning ¶
func (m *ServiceData) IsRunning() bool
IsRunning returns the running status of the monitor
func (*ServiceData) Observable ¶
func (m *ServiceData) Observable() rxgo.Observable
Observable returns an RxGo Observable for the monitor's command channel
func (*ServiceData) RunningTimesheet ¶
func (m *ServiceData) RunningTimesheet() models.Timesheet
func (*ServiceData) SetRunningTimesheet ¶
func (m *ServiceData) SetRunningTimesheet(timesheet models.Timesheet)
func (*ServiceData) SetTimesheetError ¶
func (m *ServiceData) SetTimesheetError(err error)
func (*ServiceData) SetTimesheetStatus ¶
func (m *ServiceData) SetTimesheetStatus(status int)
func (*ServiceData) Start ¶
func (m *ServiceData) Start(startChannel chan bool)
Start starts the monitor, optionally using a start channel
func (*ServiceData) TimesheetError ¶
func (m *ServiceData) TimesheetError() error
func (*ServiceData) TimesheetStatus ¶
func (m *ServiceData) TimesheetStatus() int
type ServiceUpdateEvent ¶
type ServiceUpdateEvent struct{}
ServiceUpdateEvent represents an event indicating data has been refreshed
Click to show internal directories.
Click to hide internal directories.