Get attempts to return a channel of snapshots for the asset with the given name.
(name string)
| 110 | |
| 111 | // Get attempts to return a channel of snapshots for the asset with the given name. |
| 112 | func (s *SQLRepository) Get(name string) (<-chan *Snapshot, error) { |
| 113 | return s.GetSince(name, time.Date(2000, 1, 1, 0, 0, 0, 0, time.UTC)) |
| 114 | } |
| 115 | |
| 116 | // GetSince attempts to return a channel of snapshots for the asset with the given name since the given date. |
| 117 | func (s *SQLRepository) GetSince(name string, date time.Time) (<-chan *Snapshot, error) { |