Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
Event is an event in the logs
func (*Event) MustGetStartDetails ¶
func (e *Event) MustGetStartDetails() *StartEvent
MustGetStartDetails returns the details for a start event. Panics if it is not a start event.
func (*Event) MustGetStopDetails ¶
MustGetStopDetails returns the details for a stop event. Panics if it is not a stop event.
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
FileStore does absolutly nothing to store the logs
func NewFileStore ¶
NewFileStore creates a new file store based on vendor and application name
func (*FileStore) Stop ¶
func (s *FileStore) Stop(timestamp int64, reason pb.StopRequest_Reason) error
Stop adds a stop log to the file
func (*FileStore) TimeSheets ¶
TimeSheets returns all the timesheets the file store is aware of
type NilStore ¶
type NilStore struct{}
NilStore does absolutly nothing to store the logs
func (*NilStore) Stop ¶
func (s *NilStore) Stop(timestamp int64, reason pb.StopRequest_Reason) error
Stop does absolutly nothing
func (*NilStore) TimeSheets ¶
TimeSheets does absolutly nothing
type StartEvent ¶
StartEvent details for a start event
type StopEvent ¶
type StopEvent struct { StopTime int64 Reason pb.StopRequest_Reason }
StopEvent details for a stop event
Click to show internal directories.
Click to hide internal directories.