From 14baee03fef15628cd725da9beb54c9846a3802d Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 27 Oct 2024 12:50:07 +0800 Subject: [PATCH] :truck: Move http server package --- .idea/workspace.xml | 44 +++++++++++++++++++ go.mod | 10 ++--- go.sum | 10 +++++ pkg/internal/gap/server.go | 3 +- pkg/internal/grpc/auth.go | 10 ++--- pkg/internal/grpc/events.go | 2 +- pkg/internal/grpc/health.go | 4 +- pkg/internal/grpc/notifier.go | 6 +-- pkg/internal/grpc/realms.go | 14 +++--- pkg/internal/grpc/server.go | 8 ++-- pkg/internal/grpc/stream.go | 2 +- .../{server => http}/admin/badges_api.go | 2 +- .../{server => http}/admin/factors_api.go | 2 +- pkg/internal/{server => http}/admin/index.go | 0 .../{server => http}/admin/notify_api.go | 2 +- .../{server => http}/admin/permissions_api.go | 2 +- .../{server => http}/admin/users_api.go | 2 +- .../{server => http}/api/accounts_api.go | 2 +- pkg/internal/{server => http}/api/auth_api.go | 2 +- .../{server => http}/api/avatar_api.go | 2 +- .../{server => http}/api/bot_token_api.go | 2 +- pkg/internal/{server => http}/api/bots_api.go | 2 +- .../{server => http}/api/factors_api.go | 2 +- pkg/internal/{server => http}/api/index.go | 0 .../{server => http}/api/notifications_api.go | 2 +- .../{server => http}/api/notify_api.go | 2 +- .../{server => http}/api/oauth_api.go | 2 +- .../{server => http}/api/preferences_api.go | 2 +- .../{server => http}/api/realm_members_api.go | 2 +- .../{server => http}/api/realms_api.go | 2 +- .../{server => http}/api/relationships_api.go | 2 +- .../{server => http}/api/reports_api.go | 2 +- .../{server => http}/api/security_api.go | 2 +- pkg/internal/{server => http}/api/sign_api.go | 2 +- .../{server => http}/api/statuses_api.go | 2 +- .../{server => http}/api/userinfo_api.go | 0 .../{server => http}/api/well_known_api.go | 0 pkg/internal/{server => http}/exts/auth.go | 0 pkg/internal/{server => http}/exts/request.go | 0 pkg/internal/{server => http}/server.go | 16 +++---- pkg/main.go | 10 ++--- pkg/proto/notify_grpc.pb.go | 2 +- pkg/proto/realm_grpc.pb.go | 2 +- pkg/proto/record_grpc.pb.go | 2 +- settings.toml | 4 +- 45 files changed, 124 insertions(+), 69 deletions(-) rename pkg/internal/{server => http}/admin/badges_api.go (96%) rename pkg/internal/{server => http}/admin/factors_api.go (94%) rename pkg/internal/{server => http}/admin/index.go (100%) rename pkg/internal/{server => http}/admin/notify_api.go (98%) rename pkg/internal/{server => http}/admin/permissions_api.go (95%) rename pkg/internal/{server => http}/admin/users_api.go (96%) rename pkg/internal/{server => http}/api/accounts_api.go (99%) rename pkg/internal/{server => http}/api/auth_api.go (98%) rename pkg/internal/{server => http}/api/avatar_api.go (97%) rename pkg/internal/{server => http}/api/bot_token_api.go (98%) rename pkg/internal/{server => http}/api/bots_api.go (97%) rename pkg/internal/{server => http}/api/factors_api.go (97%) rename pkg/internal/{server => http}/api/index.go (100%) rename pkg/internal/{server => http}/api/notifications_api.go (98%) rename pkg/internal/{server => http}/api/notify_api.go (96%) rename pkg/internal/{server => http}/api/oauth_api.go (98%) rename pkg/internal/{server => http}/api/preferences_api.go (96%) rename pkg/internal/{server => http}/api/realm_members_api.go (98%) rename pkg/internal/{server => http}/api/realms_api.go (98%) rename pkg/internal/{server => http}/api/relationships_api.go (99%) rename pkg/internal/{server => http}/api/reports_api.go (96%) rename pkg/internal/{server => http}/api/security_api.go (95%) rename pkg/internal/{server => http}/api/sign_api.go (97%) rename pkg/internal/{server => http}/api/statuses_api.go (98%) rename pkg/internal/{server => http}/api/userinfo_api.go (100%) rename pkg/internal/{server => http}/api/well_known_api.go (100%) rename pkg/internal/{server => http}/exts/auth.go (100%) rename pkg/internal/{server => http}/exts/request.go (100%) rename pkg/internal/{server => http}/server.go (82%) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7f778b8..27d67c3 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,7 +5,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +