(title string)
| 133 | } |
| 134 | |
| 135 | func (c *BugCache) SetTitle(title string) (*bug.SetTitleOperation, error) { |
| 136 | author, err := c.getUserIdentity() |
| 137 | if err != nil { |
| 138 | return nil, err |
| 139 | } |
| 140 | |
| 141 | return c.SetTitleRaw(author, time.Now().Unix(), title, nil) |
| 142 | } |
| 143 | |
| 144 | func (c *BugCache) SetTitleRaw(author identity.Interface, unixTime int64, title string, metadata map[string]string) (*bug.SetTitleOperation, error) { |
| 145 | c.mu.Lock() |