// Fixture: gateway/server.ts — main gateway entry point
import { loadSession, saveSession } from './session';
import { applyMiddleware } from './middleware';
import { GatewayConfig, SessionEntry } from './types';

export function startGateway(config: GatewayConfig): void {
  const session = loadSession(config.sessionKey);
  applyMiddleware(session);
}

export function handleRequest(sessionKey: string): SessionEntry {
  const session = loadSession(sessionKey);
  return session;
}

export function shutdownGateway(): void {
  // cleanup
}
