mattermost-plugin-cleanup-c.../server/autocleanup/config.go
Felipe M. 85e2a38f17
Some checks failed
ci / test (push) Successful in 3m7s
ci / lint (push) Failing after 2m50s
ci / build (push) Successful in 4m21s
release / release (push) Successful in 5m43s
Add automatic channel cleanup with unified modal UI.
Per-channel retention config, daily scheduled cleanup, slash command and REST API support, plus a single Channel cleanup menu that opens a plugin modal for configure, run-now, and disable actions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-28 18:35:24 +02:00

16 lines
338 B
Go

package autocleanup
const (
kvKeyPrefix = "auto_cleanup_"
autoCleanupJobKey = "AutoCleanupJob"
)
// Config holds per-channel automatic cleanup settings.
type Config struct {
ChannelID string `json:"channel_id"`
OffsetDays int `json:"offset_days"`
}
func kvKey(channelID string) string {
return kvKeyPrefix + channelID
}