system_setting.proto 532 B

123456789101112131415161718192021
  1. syntax = "proto3";
  2. package memos.store;
  3. option go_package = "gen/store";
  4. enum SystemSettingKey {
  5. SYSTEM_SETTING_KEY_UNSPECIFIED = 0;
  6. // BackupConfig is the key for auto-backup configuration.
  7. BACKUP_CONFIG = 1;
  8. }
  9. message BackupConfig {
  10. // enabled indicates whether backup is enabled.
  11. bool enabled = 1;
  12. // cron is the cron expression for backup. See https://godoc.org/github.com/robfig/cron#hdr-CRON_Expression_Format
  13. string cron = 2;
  14. // max_keep is the maximum number of backups to keep.
  15. int32 max_keep = 3;
  16. }