GetRulesConfig gets the user's ruler config
(ctx context.Context, userID string)
| 34 | type DB interface { |
| 35 | // GetRulesConfig gets the user's ruler config |
| 36 | GetRulesConfig(ctx context.Context, userID string) (userconfig.VersionedRulesConfig, error) |
| 37 | |
| 38 | // SetRulesConfig does a compare-and-swap (CAS) on the user's rules config. |
| 39 | // `oldConfig` must precisely match the current config in order to change the config to `newConfig`. |