Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
tracking.proto
It has these top-level messages:
SysMigrationsStatus SysTrackingStatus SysWorkspaceIndex TrackingTimesheet TrackingEntry TrackingEntryRef
Index ¶
- type SysMigrationsStatus
- type SysTrackingStatus
- func (*SysTrackingStatus) Descriptor() ([]byte, []int)
- func (m *SysTrackingStatus) GetEntry() string
- func (m *SysTrackingStatus) GetIsRunning() bool
- func (m *SysTrackingStatus) GetTimesheet() string
- func (m *SysTrackingStatus) GetWorkspace() string
- func (*SysTrackingStatus) ProtoMessage()
- func (m *SysTrackingStatus) Reset()
- func (m *SysTrackingStatus) String() string
- type SysWorkspaceIndex
- type TrackingEntry
- func (*TrackingEntry) Descriptor() ([]byte, []int)
- func (m *TrackingEntry) GetCreated() uint64
- func (m *TrackingEntry) GetDuration() uint64
- func (m *TrackingEntry) GetKey() string
- func (m *TrackingEntry) GetNote() string
- func (m *TrackingEntry) GetTimesheet() string
- func (m *TrackingEntry) GetUpdated() uint64
- func (*TrackingEntry) ProtoMessage()
- func (m *TrackingEntry) Reset()
- func (m *TrackingEntry) String() string
- type TrackingEntryRef
- type TrackingTimesheet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SysMigrationsStatus ¶
type SysMigrationsStatus struct { // The versions that have been applied. Versions []uint64 `protobuf:"varint,1,rep,packed,name=versions" json:"versions,omitempty"` }
SysMigrationsStatus represents the current state of backend migrations.
func (*SysMigrationsStatus) Descriptor ¶
func (*SysMigrationsStatus) Descriptor() ([]byte, []int)
func (*SysMigrationsStatus) GetVersions ¶
func (m *SysMigrationsStatus) GetVersions() []uint64
func (*SysMigrationsStatus) ProtoMessage ¶
func (*SysMigrationsStatus) ProtoMessage()
func (*SysMigrationsStatus) Reset ¶
func (m *SysMigrationsStatus) Reset()
func (*SysMigrationsStatus) String ¶
func (m *SysMigrationsStatus) String() string
type SysTrackingStatus ¶
type SysTrackingStatus struct { // Whether or not a (any) timer is running. IsRunning bool `protobuf:"varint,1,opt,name=is_running,json=isRunning" json:"is_running,omitempty"` // The date of the timesheet currently being tracked. Timesheet string `protobuf:"bytes,2,opt,name=timesheet" json:"timesheet,omitempty"` // The hash of the entry currently being tracked. Entry string `protobuf:"bytes,3,opt,name=entry" json:"entry,omitempty"` // The name of the workspace currently being tracked. Workspace string `protobuf:"bytes,4,opt,name=workspace" json:"workspace,omitempty"` }
SysTrackingStatus represents the current state of tracking, i.e. whether or not a timer is running, or which timer we last modified.
func (*SysTrackingStatus) Descriptor ¶
func (*SysTrackingStatus) Descriptor() ([]byte, []int)
func (*SysTrackingStatus) GetEntry ¶
func (m *SysTrackingStatus) GetEntry() string
func (*SysTrackingStatus) GetIsRunning ¶
func (m *SysTrackingStatus) GetIsRunning() bool
func (*SysTrackingStatus) GetTimesheet ¶
func (m *SysTrackingStatus) GetTimesheet() string
func (*SysTrackingStatus) GetWorkspace ¶
func (m *SysTrackingStatus) GetWorkspace() string
func (*SysTrackingStatus) ProtoMessage ¶
func (*SysTrackingStatus) ProtoMessage()
func (*SysTrackingStatus) Reset ¶
func (m *SysTrackingStatus) Reset()
func (*SysTrackingStatus) String ¶
func (m *SysTrackingStatus) String() string
type SysWorkspaceIndex ¶
type SysWorkspaceIndex struct {
Workspaces []string `protobuf:"bytes,1,rep,name=workspaces" json:"workspaces,omitempty"`
}
SysWorkspaceIndex keeps track of all created workspaces.
func (*SysWorkspaceIndex) Descriptor ¶
func (*SysWorkspaceIndex) Descriptor() ([]byte, []int)
func (*SysWorkspaceIndex) GetWorkspaces ¶
func (m *SysWorkspaceIndex) GetWorkspaces() []string
func (*SysWorkspaceIndex) ProtoMessage ¶
func (*SysWorkspaceIndex) ProtoMessage()
func (*SysWorkspaceIndex) Reset ¶
func (m *SysWorkspaceIndex) Reset()
func (*SysWorkspaceIndex) String ¶
func (m *SysWorkspaceIndex) String() string
type TrackingEntry ¶
type TrackingEntry struct { // The key of this entry. Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` // The key of the timesheet this entry belongs to. Timesheet string `protobuf:"bytes,2,opt,name=timesheet" json:"timesheet,omitempty"` // The note associated with this entry. Note string `protobuf:"bytes,3,opt,name=note" json:"note,omitempty"` // The unix timestamp of when this entry was created. Created uint64 `protobuf:"varint,4,opt,name=created" json:"created,omitempty"` // The unix timestamp of when this entry was last updated. Updated uint64 `protobuf:"varint,5,opt,name=updated" json:"updated,omitempty"` // The number of seconds this has been tracked for (once committed). Duration uint64 `protobuf:"varint,6,opt,name=duration" json:"duration,omitempty"` }
TrackingEntry represents an entry in the timesheet. This will have enough information to commit to the duration, and also enough information to identify the entry.
func (*TrackingEntry) Descriptor ¶
func (*TrackingEntry) Descriptor() ([]byte, []int)
func (*TrackingEntry) GetCreated ¶
func (m *TrackingEntry) GetCreated() uint64
func (*TrackingEntry) GetDuration ¶
func (m *TrackingEntry) GetDuration() uint64
func (*TrackingEntry) GetKey ¶
func (m *TrackingEntry) GetKey() string
func (*TrackingEntry) GetNote ¶
func (m *TrackingEntry) GetNote() string
func (*TrackingEntry) GetTimesheet ¶
func (m *TrackingEntry) GetTimesheet() string
func (*TrackingEntry) GetUpdated ¶
func (m *TrackingEntry) GetUpdated() uint64
func (*TrackingEntry) ProtoMessage ¶
func (*TrackingEntry) ProtoMessage()
func (*TrackingEntry) Reset ¶
func (m *TrackingEntry) Reset()
func (*TrackingEntry) String ¶
func (m *TrackingEntry) String() string
type TrackingEntryRef ¶
type TrackingEntryRef struct { // The key of this entry reference. Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` // The key of the entry this reference belongs to. Entry string `protobuf:"bytes,2,opt,name=entry" json:"entry,omitempty"` }
TrackingEntryRef represents a reference from an entry's short key to it's full key.
func (*TrackingEntryRef) Descriptor ¶
func (*TrackingEntryRef) Descriptor() ([]byte, []int)
func (*TrackingEntryRef) GetEntry ¶
func (m *TrackingEntryRef) GetEntry() string
func (*TrackingEntryRef) GetKey ¶
func (m *TrackingEntryRef) GetKey() string
func (*TrackingEntryRef) ProtoMessage ¶
func (*TrackingEntryRef) ProtoMessage()
func (*TrackingEntryRef) Reset ¶
func (m *TrackingEntryRef) Reset()
func (*TrackingEntryRef) String ¶
func (m *TrackingEntryRef) String() string
type TrackingTimesheet ¶
type TrackingTimesheet struct { // The key of this timesheet. Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` // A timesheet consists of many entries. A timesheet can be totally empty, it's just there to // hold the reference to a bunch of entries under a date, i.e. for easy access. Entries []string `protobuf:"bytes,2,rep,name=entries" json:"entries,omitempty"` }
TrackingTimesheet represents a timesheet. It contains all of the entries for a time period.
func (*TrackingTimesheet) Descriptor ¶
func (*TrackingTimesheet) Descriptor() ([]byte, []int)
func (*TrackingTimesheet) GetEntries ¶
func (m *TrackingTimesheet) GetEntries() []string
func (*TrackingTimesheet) GetKey ¶
func (m *TrackingTimesheet) GetKey() string
func (*TrackingTimesheet) ProtoMessage ¶
func (*TrackingTimesheet) ProtoMessage()
func (*TrackingTimesheet) Reset ¶
func (m *TrackingTimesheet) Reset()
func (*TrackingTimesheet) String ¶
func (m *TrackingTimesheet) String() string