(procName string, args ...interface{})
| 189 | } |
| 190 | |
| 191 | func (c *Cluster) setProcessName(procName string, args ...interface{}) { |
| 192 | c.processMu.Lock() |
| 193 | defer c.processMu.Unlock() |
| 194 | c.currentProcess = Process{ |
| 195 | Name: fmt.Sprintf(procName, args...), |
| 196 | StartTime: time.Now(), |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | // GetReference of Postgres CR object |
| 201 | // i.e. required to emit events to this resource |
no test coverage detected