summaryrefslogtreecommitdiff
path: root/client/fsm.go
AgeCommit message (Collapse)Author
2024-06-04Client FSM: Allow to go from Disconnected to Connectingjwijenbergh
Could be if cleanup has failed and a config is still alive
2024-05-30Client: Fix lint error with FSM debugjwijenbergh
2024-05-30FSM: Remove Mermaid graph generationjwijenbergh
Too complicated to be in the core codebase and I only sometimes need it to view the updated figure. Create a CLI tool some time later
2024-04-24Client FSM: Allow Disconnected state from GettingConfigJeroen Wijenbergh
2024-04-16Client FSM: Allow to go to Disconnected from OAuthStartedjwijenbergh
Useful when cancelling OAuth when on the connection screen
2024-02-19All: Document everything to pass revive lintjwijenbergh
2024-02-19Client FSM + Python: Begin implementing a new state machinejwijenbergh
2023-09-25Client FSM: Allow self-transition to No Serverjwijenbergh
2023-09-25Client FSM: Add loading server to authorizedjwijenbergh
2023-09-25Client FSM: Allow client to ask location in NoServerjwijenbergh
2023-09-25Client FSM: Add extra optional states about VPN connectivityjwijenbergh
2023-09-25Client + FSM: Check transitions and add SetStatejwijenbergh
Also make sure GotConfig can be used to go back to
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: Remove servers argument to transitionjwijenbergh
2023-09-25Client FSM: Remove states that are client specific/not in the libjwijenbergh
2023-02-28Log: Use a global logger instancejwijenbergh
2023-02-27Client FSM: Remove already connected logjwijenbergh
Useless spam in the log file
2023-01-13Client + Exports: Separate cleanup from disconnectjwijenbergh
2022-12-21Client + Exports: Forward tokens for /disconnectjwijenbergh
2022-12-21Linting: Fix config arguments and results + commentsjwijenbergh
2022-12-21Failover: Initial implementationjwijenbergh
2022-12-12Format: Run gofumptjwijenbergh
2022-12-12Client FSM: Fix fsm typojwijenbergh
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 golinesjwijenbergh
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-24FSM: Rename OAuth Started back transition to No Serverjwijenbergh
2022-11-23FSM: Check unhandled transitionsjwijenbergh
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-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
2022-10-19Client: Separate into different filesjwijenbergh
2022-10-18Client: Move to its own packagejwijenbergh