MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / FileCooldownStateStore

Struct FileCooldownStateStore

sdk/cliproxy/auth/cooldown_state.go:47–51  ·  view source on GitHub ↗

FileCooldownStateStore stores cooldown state as one .cds file per auth.

Source from the content-addressed store, hash-verified

45
46// FileCooldownStateStore stores cooldown state as one .cds file per auth.
47type 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.
54func NewFileCooldownStateStore(dir string) *FileCooldownStateStore {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected