[feat] log

This commit is contained in:
zhhe committed 2026-11-17 07:58:03 +08:00
1 parent 1fcf56e3dd
commit 44e203d868
14 files changed
+305 -210

No files matched your search

+3
View File
@@ -16,8 +16,11 @@ export declare class MailGateway {
private allowed;
private accountKey;
private generation;
private readonly logs;
private status;
constructor(ctx: Context, mailbox: MailboxSettings, allowed: readonly string[], onLog?: (message: string) => void);
/** 所有运行日志都进内存环形缓冲,设置页可直接查看,同时保留控制台输出。 */
private record;
start(): () => Promise<void>;
/** 只接受新的绑定与白名单;ctx 不参与重载。 */
reload(mailbox: MailboxSettings, allowed: readonly string[]): void;