(name string)
| 232 | } |
| 233 | |
| 234 | func (c *callback) Remove(name string) error { |
| 235 | c.processor.db.Logger.Warn(context.Background(), "removing callback `%s` from %s\n", name, utils.FileWithLineNum()) |
| 236 | c.name = name |
| 237 | c.remove = true |
| 238 | c.processor.callbacks = append(c.processor.callbacks, c) |
| 239 | return c.processor.compile() |
| 240 | } |
| 241 | |
| 242 | func (c *callback) Replace(name string, fn func(*DB)) error { |
| 243 | c.processor.db.Logger.Info(context.Background(), "replacing callback `%s` from %s\n", name, utils.FileWithLineNum()) |