FileCooldownStateStore stores cooldown state as one .cds file per auth.
| 45 | |
| 46 | // FileCooldownStateStore stores cooldown state as one .cds file per auth. |
| 47 | type FileCooldownStateStore struct { |
| 48 | mu sync.Mutex |
| 49 | dir string |
| 50 | authDir string |
| 51 | } |
| 52 | |
| 53 | // NewFileCooldownStateStore creates a file-backed cooldown state store rooted at dir. |
| 54 | func NewFileCooldownStateStore(dir string) *FileCooldownStateStore { |
nothing calls this directly
no outgoing calls
no test coverage detected