summaryrefslogtreecommitdiff
path: root/client/server.go
AgeCommit message (Collapse)Author
2023-09-25Refactor: Move client implementation to one filejwijenbergh
Much easier to oversee and it forces me to keep the client type as small as possible. This also uses the cookie for cancellation We also no longer require tokens inside arguments. We will later implement them with callbacks
2023-09-25Client: Improve Let's Connect! not supported errorsjwijenbergh
2023-09-25Client: failover cancel error should be lowercasejwijenbergh
2023-09-25Client: Remove OpenVPN check for failover and check if in progressjwijenbergh
2023-09-25Exports + Client: Refactor registering a clientjwijenbergh
- Make sure the global exports state is only set on successful creating - Only call discovery when adding a server to ensure we get the most up to date args. Creating a client should have no network calls. Fixes #12 - Split creating a client in New and Register in the GO api
2023-09-25Exports + Python + Server: Remove ShouldRenewButtonjwijenbergh
This is replace with expiry times
2023-09-25Tests: Pass for V2 APIjwijenbergh
2023-09-25Client: Remove servers argument to transitionjwijenbergh
2023-09-25Types: Split server into subpackagejwijenbergh
2023-09-25Types: Split discovery into its own packagejwijenbergh
2023-09-25Format: Run gofumptjwijenbergh
2023-09-25Types: Split protocol into its ownjwijenbergh
2023-09-25Client Server: Convert from external to internal types and vice versajwijenbergh
Also use wait groups for waiting for transitions
2023-09-01Client + Server: Increase endpoint update frequency and update secure ↵jwijenbergh
internet handling
2023-04-18Client + Server: Set default secure internet locationjwijenbergh
2023-04-18Client Server: Forward token update after ensuring loginjwijenbergh
2023-04-18Client Server: Log current secure internet server for configjwijenbergh
2023-04-18Client Server: Go back on setting custom server errorjwijenbergh
2023-04-18Client + Server: Implement a token updater callbackjwijenbergh
2023-03-01Client Server: Give a more general error in case location failsjwijenbergh
2023-02-28Log: Use a global logger instancejwijenbergh
2023-02-27Client Server: Go back on failure to add secure internetjwijenbergh
2023-02-16HTTP: Incorporate util ensure valid url with clean pathjwijenbergh
2023-01-13Client + Exports: Separate cleanup from disconnectjwijenbergh
2023-01-12Failover: Return early by waiting for a single pongjwijenbergh
2023-01-10Client + Discovery: Implement further organizations expiryjwijenbergh
2023-01-03Discovery: Remove server type from getting by country codejwijenbergh
It's always secure internet, no need to pass it as an argument
2022-12-21Failover: Pass logger and add debug statementsjwijenbergh
2022-12-21Linting: Fix config arguments and results + commentsjwijenbergh
2022-12-21Exports + OAuth + Server: Forward tokens to getting a configjwijenbergh
2022-12-21Failover: Initial implementationjwijenbergh
2022-12-15Client Server: Use double pointer to check errors Asjwijenbergh
2022-12-14Client Server: Fix not going to authorized statejwijenbergh
2022-12-12Format: Run gofumptjwijenbergh
2022-12-12Client Server: Minor style changes and resolve TODOjwijenbergh
2022-12-12simplify error handlingAleksandar Pesic
fixes #6 Signed-off-by: Aleksandar Pesic <peske.nis@gmail.com>
2022-11-28Log: Define f prefix for log functions to indicate printf likejwijenbergh
2022-11-28Formatting: Run gofumpt -wjwijenbergh
2022-11-28Refactor: Fix revive linter errors by deleting redundant prefixesjwijenbergh
2022-11-28Lint: Run godot fixjwijenbergh
Full command: golangci-lint run --disable-all -E godot --fix
2022-11-28Refactor: Remove most get prefixes for receiver functionsjwijenbergh
2022-11-28Document: Add comments for most functions and packagesjwijenbergh
Errors and test files still need to be done. Also some getters are changed by removing the 'get' prefix
2022-11-24Style: Use stylecheck and fix errorsjwijenbergh
2022-11-23FSM: Check unhandled transitionsjwijenbergh
2022-11-17Log: Add additional params to get rid of Sprintf callsjwijenbergh
2022-11-14Client + Server: Refresh the endpoints before checking for a valid profilejwijenbergh
2022-11-08Server: Implement manually renewingjwijenbergh
2022-10-25Client + FSM: Remove background argument from transitionjwijenbergh
This fixes a race condition reported by Go's -race flag In the future we should use waitgroups to ensure the OAuth local listener is started before we sent the URL
2022-10-24Client + Server + Exports: Implement optional WireGuard supportjwijenbergh
2022-10-19Refactor: Make errors use the parent's error leveljwijenbergh
- All wrapped errors have to be created with types.NewWrappedError to inherit the error level from the parent - Or types.NewWrappedErrorLevel can be used which means a custom error level is given. For example this is done with cancelling OAuth - Client public errors are forwarded with handleError that also logs it with the error's level