From 8ae6292bf08d2420468d9ec39bab06a2ca85aab0 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 17 May 2024 19:37:58 +0800 Subject: [PATCH] :zap: In memory auth context cache --- .idea/workspace.xml | 15 +++++- go.mod | 9 ++-- go.sum | 10 ++-- pkg/cmd/main.go | 7 +-- pkg/database/source.go | 12 ----- pkg/models/auth.go | 6 +-- pkg/server/accounts_api.go | 2 + pkg/server/ui/personalize.go | 3 ++ pkg/services/accounts.go | 2 + pkg/services/auth.go | 87 +++++++++++++------------------ pkg/services/ticker_maintainer.go | 35 ------------- settings.toml | 1 - 12 files changed, 69 insertions(+), 120 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b53f1dd..a517cd5 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,20 @@