mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-07-28 16:42:37 -04:00
[PR #164] [MERGED] HTTP server refactor #634
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/qdm12/ddns-updater/pull/164
Author: @qdm12
Created: 2/2/2021
Status: ✅ Merged
Merged: 2/8/2021
Merged by: @qdm12
Base:
master← Head:http-server📝 Commits (5)
128bb7aRework current serverdd8920eMake update call blocking6fc90cbFix channel not createdca084e5Make ForceUpdate context aware539f703Run first update without blocking📊 Changes
10 files changed (+169 additions, -60 deletions)
View changed files
📝
cmd/updater/main.go(+7 -4)📝
go.mod(+1 -0)📝
go.sum(+2 -0)➕
internal/server/error.go(+35 -0)➕
internal/server/fileserver.go(+24 -0)📝
internal/server/handler.go(+35 -48)➕
internal/server/index.go(+18 -0)📝
internal/server/server.go(+4 -3)➕
internal/server/update.go(+18 -0)📝
internal/update/run.go(+25 -5)📄 Description
GET /updateblocking until all updates are doneI skipped adding unit tests as I would like to get moving with an API server and a client side UI (react) which would change the routes quite a bit (in a subsequent PR). Also sorry for the delay @fredericrous was caught up in other repos essentially 😄
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.