advance the status to next, and return
(id string)
| 33 | |
| 34 | // advance the status to next, and return |
| 35 | func (f *ExampleService) getStatus(id string) *ExampleCacheItem { |
| 36 | if _, ok := f.jobStatus[id]; !ok { |
| 37 | f.jobStatus[id] = ExampleStatusStarted |
| 38 | } |
| 39 | f.jobStatus[id] = ExampleStatusSucceeded |
| 40 | return &ExampleCacheItem{f.jobStatus[id], id} |
| 41 | } |
| 42 | |
| 43 | func ExampleNewAutoRefreshCache() { |
| 44 | // This auto-refresh cache can be used for cases where keys are created by caller but processed by |
no outgoing calls
no test coverage detected