MCPcopy Create free account
hub / github.com/F12FLASH/CTF / IStorage

Interface IStorage

12.The Undefined/server/storage.ts:4–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import { CORRECT_FLAG, INITIAL_PROGRESS, HINTS } from "@shared/schema";
3
4export interface IStorage {
5 getProgress(sessionId: string): Promise<Progress>;
6 updateProgress(sessionId: string, progress: Progress): Promise<Progress>;
7 getAttempts(sessionId: string): Promise<number>;
8 incrementAttempts(sessionId: string): Promise<number>;
9 validateFlag(sessionId: string, flag: string): Promise<FlagResponse>;
10 getHints(sessionId: string): Promise<Hint[]>;
11 updateHints(sessionId: string, hints: Hint[]): Promise<Hint[]>;
12}
13
14interface SessionData {
15 progress: Progress;

Callers 9

registerRoutesFunction · 0.65
registerRoutesFunction · 0.65
registerRoutesFunction · 0.65
registerRoutesFunction · 0.65
registerRoutesFunction · 0.65
createSubmissionMethod · 0.65
registerRoutesFunction · 0.65
registerRoutesFunction · 0.65
registerRoutesFunction · 0.65

Implementers 1

MemStorage12.The Undefined/server/storage.ts

Calls

no outgoing calls

Tested by

no test coverage detected