Documentation ¶
Index ¶
- func NewModifiedData() db.ModifiedData
- func NewMuxModifiedComments(readWrite db.ModifiedComments, writeOnly ...db.ModifiedComments) db.ModifiedComments
- func NewMuxModifiedData(readWrite db.ModifiedData, writeOnly ...db.ModifiedData) db.ModifiedData
- func NewMuxModifiedJobs(readWrite db.ModifiedJobs, writeOnly ...db.ModifiedJobs) db.ModifiedJobs
- func NewMuxModifiedTasks(readWrite db.ModifiedTasks, writeOnly ...db.ModifiedTasks) db.ModifiedTasks
- type ModifiedCommentsImpl
- func (m *ModifiedCommentsImpl) GetModifiedComments(id string) ([]*types.TaskComment, []*types.TaskSpecComment, []*types.CommitComment, error)
- func (m *ModifiedCommentsImpl) StartTrackingModifiedComments() (string, error)
- func (m *ModifiedCommentsImpl) StopTrackingModifiedComments(id string)
- func (m *ModifiedCommentsImpl) TrackModifiedCommitComment(c *types.CommitComment)
- func (m *ModifiedCommentsImpl) TrackModifiedTaskComment(c *types.TaskComment)
- func (m *ModifiedCommentsImpl) TrackModifiedTaskSpecComment(c *types.TaskSpecComment)
- type ModifiedJobsImpl
- func (m *ModifiedJobsImpl) GetModifiedJobs(id string) ([]*types.Job, error)
- func (m *ModifiedJobsImpl) GetModifiedJobsGOB(id string) (map[string][]byte, error)
- func (m *ModifiedJobsImpl) StartTrackingModifiedJobs() (string, error)
- func (m *ModifiedJobsImpl) StopTrackingModifiedJobs(id string)
- func (m *ModifiedJobsImpl) TrackModifiedJob(j *types.Job)
- func (m *ModifiedJobsImpl) TrackModifiedJobsGOB(_ time.Time, gobs map[string][]byte)
- type ModifiedTasksImpl
- func (m *ModifiedTasksImpl) GetModifiedTasks(id string) ([]*types.Task, error)
- func (m *ModifiedTasksImpl) GetModifiedTasksGOB(id string) (map[string][]byte, error)
- func (m *ModifiedTasksImpl) StartTrackingModifiedTasks() (string, error)
- func (m *ModifiedTasksImpl) StopTrackingModifiedTasks(id string)
- func (m *ModifiedTasksImpl) TrackModifiedTask(t *types.Task)
- func (m *ModifiedTasksImpl) TrackModifiedTasksGOB(_ time.Time, gobs map[string][]byte)
- type MuxModifiedComments
- type MuxModifiedJobs
- type MuxModifiedTasks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewModifiedData ¶
func NewModifiedData() db.ModifiedData
NewModifiedData returns a db.ModifiedData instance which tracks modifications in memory.
func NewMuxModifiedComments ¶
func NewMuxModifiedComments(readWrite db.ModifiedComments, writeOnly ...db.ModifiedComments) db.ModifiedComments
New MuxModifiedComments returns an implementation of db.ModifiedComments which writes to multiple ModifiedJobs instances but only reads from one.
func NewMuxModifiedData ¶
func NewMuxModifiedData(readWrite db.ModifiedData, writeOnly ...db.ModifiedData) db.ModifiedData
NewMuxModifiedData returns a db.ModifiedData implementation which writes to multiple ModifiedData instances but only reads from one.
func NewMuxModifiedJobs ¶
func NewMuxModifiedJobs(readWrite db.ModifiedJobs, writeOnly ...db.ModifiedJobs) db.ModifiedJobs
New MuxModifiedJobs returns an implementation of db.ModifiedJobs which writes to multiple ModifiedJobs instances but only reads from one.
func NewMuxModifiedTasks ¶
func NewMuxModifiedTasks(readWrite db.ModifiedTasks, writeOnly ...db.ModifiedTasks) db.ModifiedTasks
NewMuxModifiedTasks returns an implementation of db.ModifiedTasks which writes to multiple ModifiedTasks instances but only reads from one.
Types ¶
type ModifiedCommentsImpl ¶
type ModifiedCommentsImpl struct {
// contains filtered or unexported fields
}
func (*ModifiedCommentsImpl) GetModifiedComments ¶
func (m *ModifiedCommentsImpl) GetModifiedComments(id string) ([]*types.TaskComment, []*types.TaskSpecComment, []*types.CommitComment, error)
See docs for ModifiedComments interface.
func (*ModifiedCommentsImpl) StartTrackingModifiedComments ¶
func (m *ModifiedCommentsImpl) StartTrackingModifiedComments() (string, error)
See docs for ModifiedComments interface.
func (*ModifiedCommentsImpl) StopTrackingModifiedComments ¶
func (m *ModifiedCommentsImpl) StopTrackingModifiedComments(id string)
See docs for ModifiedComments interface.
func (*ModifiedCommentsImpl) TrackModifiedCommitComment ¶
func (m *ModifiedCommentsImpl) TrackModifiedCommitComment(c *types.CommitComment)
See docs for ModifiedComments interface.
func (*ModifiedCommentsImpl) TrackModifiedTaskComment ¶
func (m *ModifiedCommentsImpl) TrackModifiedTaskComment(c *types.TaskComment)
See docs for ModifiedComments interface.
func (*ModifiedCommentsImpl) TrackModifiedTaskSpecComment ¶
func (m *ModifiedCommentsImpl) TrackModifiedTaskSpecComment(c *types.TaskSpecComment)
See docs for ModifiedComments interface.
type ModifiedJobsImpl ¶
type ModifiedJobsImpl struct {
// contains filtered or unexported fields
}
func (*ModifiedJobsImpl) GetModifiedJobs ¶
func (m *ModifiedJobsImpl) GetModifiedJobs(id string) ([]*types.Job, error)
See docs for ModifiedJobs interface.
func (*ModifiedJobsImpl) GetModifiedJobsGOB ¶
func (m *ModifiedJobsImpl) GetModifiedJobsGOB(id string) (map[string][]byte, error)
See docs for ModifiedJobs interface.
func (*ModifiedJobsImpl) StartTrackingModifiedJobs ¶
func (m *ModifiedJobsImpl) StartTrackingModifiedJobs() (string, error)
See docs for ModifiedJobs interface.
func (*ModifiedJobsImpl) StopTrackingModifiedJobs ¶
func (m *ModifiedJobsImpl) StopTrackingModifiedJobs(id string)
See docs for ModifiedJobs interface.
func (*ModifiedJobsImpl) TrackModifiedJob ¶
func (m *ModifiedJobsImpl) TrackModifiedJob(j *types.Job)
See docs for ModifiedJobs interface.
func (*ModifiedJobsImpl) TrackModifiedJobsGOB ¶
func (m *ModifiedJobsImpl) TrackModifiedJobsGOB(_ time.Time, gobs map[string][]byte)
See docs for ModifiedJobs interface.
type ModifiedTasksImpl ¶
type ModifiedTasksImpl struct {
// contains filtered or unexported fields
}
ModifiedTasksImpl is an implementation of the ModifiedTasks interface.
func (*ModifiedTasksImpl) GetModifiedTasks ¶
func (m *ModifiedTasksImpl) GetModifiedTasks(id string) ([]*types.Task, error)
See docs for ModifiedTasks interface.
func (*ModifiedTasksImpl) GetModifiedTasksGOB ¶
func (m *ModifiedTasksImpl) GetModifiedTasksGOB(id string) (map[string][]byte, error)
See docs for ModifiedTasks interface.
func (*ModifiedTasksImpl) StartTrackingModifiedTasks ¶
func (m *ModifiedTasksImpl) StartTrackingModifiedTasks() (string, error)
See docs for ModifiedTasks interface.
func (*ModifiedTasksImpl) StopTrackingModifiedTasks ¶
func (m *ModifiedTasksImpl) StopTrackingModifiedTasks(id string)
See docs for ModifiedTasks interface.
func (*ModifiedTasksImpl) TrackModifiedTask ¶
func (m *ModifiedTasksImpl) TrackModifiedTask(t *types.Task)
See docs for ModifiedTasks interface.
func (*ModifiedTasksImpl) TrackModifiedTasksGOB ¶
func (m *ModifiedTasksImpl) TrackModifiedTasksGOB(_ time.Time, gobs map[string][]byte)
See docs for ModifiedTasks interface.
type MuxModifiedComments ¶
type MuxModifiedComments struct { db.ModifiedComments // contains filtered or unexported fields }
MuxModifiedComments is an implementation of db.ModifiedComments which writes to multiple ModifiedJobs instances but only reads from one.
func (*MuxModifiedComments) TrackModifiedCommitComment ¶
func (m *MuxModifiedComments) TrackModifiedCommitComment(c *types.CommitComment)
See documentation for db.ModifiedComments interface.
func (*MuxModifiedComments) TrackModifiedTaskComment ¶
func (m *MuxModifiedComments) TrackModifiedTaskComment(c *types.TaskComment)
See documentation for db.ModifiedComments interface.
func (*MuxModifiedComments) TrackModifiedTaskSpecComment ¶
func (m *MuxModifiedComments) TrackModifiedTaskSpecComment(c *types.TaskSpecComment)
See documentation for db.ModifiedComments interface.
type MuxModifiedJobs ¶
type MuxModifiedJobs struct { db.ModifiedJobs // contains filtered or unexported fields }
MuxModifiedJobs is an implementation of db.ModifiedJobs which writes to multiple ModifiedJobs instances but only reads from one.
func (*MuxModifiedJobs) TrackModifiedJob ¶
func (m *MuxModifiedJobs) TrackModifiedJob(task *types.Job)
See documentation for db.ModifiedJobs interface.
func (*MuxModifiedJobs) TrackModifiedJobsGOB ¶
func (m *MuxModifiedJobs) TrackModifiedJobsGOB(dbModified time.Time, gobs map[string][]byte)
See documentation for db.ModifiedJobs interface.
type MuxModifiedTasks ¶
type MuxModifiedTasks struct { db.ModifiedTasks // contains filtered or unexported fields }
MuxModifiedTasks is an implementation of db.ModifiedTasks which writes to multiple ModifiedTasks instances but only reads from one.
func (*MuxModifiedTasks) TrackModifiedTask ¶
func (m *MuxModifiedTasks) TrackModifiedTask(task *types.Task)
See documentation for db.ModifiedTasks interface.
func (*MuxModifiedTasks) TrackModifiedTasksGOB ¶
func (m *MuxModifiedTasks) TrackModifiedTasksGOB(dbModified time.Time, gobs map[string][]byte)
See documentation for db.ModifiedTasks interface.