func reply(ctx context.Context, w http.ResponseWriter, r *http.Request) error { eid, err := uid.FromHashID(param.FromContext(ctx, "id")) if err != nil { return err } q := queue.FromContext(ctx) if err := q.Ack(eid); err != nil { return err } fmt.Fprintf(w, "ok") return nil }
func queueName(ctx context.Context) string { return strings.Trim(param.FromContext(ctx, "queue"), "/") }