(timestamp time.Time)
| 86 | } |
| 87 | |
| 88 | func (i index) replace(timestamp time.Time) string { |
| 89 | return strings.NewReplacer( |
| 90 | "%Y", timestamp.UTC().Format("2006"), |
| 91 | "%y", timestamp.UTC().Format("06"), |
| 92 | "%m", timestamp.UTC().Format("01"), |
| 93 | "%d", timestamp.UTC().Format("02"), |
| 94 | "%H", timestamp.UTC().Format("15")).Replace(i.config.IndexName) |
| 95 | } |