summaryrefslogtreecommitdiff
path: root/internal/fsm
AgeCommit message (Collapse)Author
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-02-19All: Document everything to pass revive lintjwijenbergh
2024-02-19FSM: Allow to always go to deregisteredjwijenbergh
2024-02-19All: Prepare to get rid of go-errors/errors libjwijenbergh
2023-09-25FSM: Allow to always go back to the initial statejwijenbergh
2023-09-25Client + FSM: Check transitions and add SetStatejwijenbergh
Also make sure GotConfig can be used to go back to
2023-09-25FSM: Add more context to required transition errorjwijenbergh
2023-09-25Revert "FSM: Set handled to true for now"jwijenbergh
This reverts commit 2b1bb611b7c83d8e8e5eadfed7c717d16e61d81b.
2023-09-25FSM: Set handled to true for nowjwijenbergh
2023-09-25FSM: Add state name to transition errorjwijenbergh
2022-12-21FSM: Do not exec mmdc for mermaidjwijenbergh
2022-12-12FSM: Remove HasTransition functionjwijenbergh
2022-12-12FSM: Include state name in error messagejwijenbergh
2022-12-12simplify error handlingAleksandar Pesic
fixes #6 Signed-off-by: Aleksandar Pesic <peske.nis@gmail.com>
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-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-13Client + Config + FSM: Simplify file namesjwijenbergh
2022-09-20Golang-ci-lint: Fixesjwijenbergh
2022-09-14Refactor: Return without jsonjwijenbergh
2022-09-07Refactor: Define FSM state constants inside the public packagejwijenbergh
2022-09-06State + FSM + Python: Rename the HAS_CONFIG state to DISCONNECTEDjwijenbergh
2022-09-06FSM: Set back state for loading serverjwijenbergh
2022-08-24State + Server + Exports: Implement removing a serverjwijenbergh
2022-08-23Formatting: Run golinesjwijenbergh
2022-08-19State + FSM: Properly handle the disconnect flowjwijenbergh
- /disconnect is now called - A new state is added (DISCONNECTING) that waits for the disconnect to complete - A helper function is exposed (InFSMState) that can be used by clients to see in which state they are in
2022-08-16Refactor: Use an interface for the data in the FSM callbackjwijenbergh
2022-08-15Refactor: Use constants for state callbacks instead of stringsjwijenbergh
2022-08-10State + Python: Implement renewing a sessionjwijenbergh
2022-07-22State + FSM + Exports: Implement changing a secure internet locationjwijenbergh
2022-07-20Refactor: Do not log in internal packagesjwijenbergh
The reason behind this is that we then do not have to pass a lot to each function. Logging inside internal packages is less useful as we want to let them return errors and only log in the 'public' facing API or let the client decide
2022-07-18FSM: Add back state for OAuth Startedjwijenbergh
2022-07-18All: Run Gofumpt formatterjwijenbergh
2022-07-18FSM: Ensure that we always return valid JSONjwijenbergh
2022-07-15FSM + State + Python: Add a connecting state and improve back transitionsjwijenbergh
2022-07-12FSM: Fix Ask Profile transitionsjwijenbergh
2022-07-12FSM: Fix ask location transitionsjwijenbergh
2022-07-12State + FSM: Implement a loading server statejwijenbergh
2022-07-12State + FSM: Add an easy way to go back to the previous 'Main' statejwijenbergh
The 'Main' state here is a main UI menu, e.g. the intial state, the server search page, the configuring server page or the connected/has config page
2022-07-07Secure Internet: Implement the Ask Location transition callbackjwijenbergh
2022-07-05FSM: Set default mermaid graph generation scale to 4jwijenbergh
2022-06-21FSM: Add the search server statejwijenbergh
2022-06-20Refactor: Errors to have one custom type that is to be wrappedjwijenbergh
- For this an `internal/types` package is created with a custom error type - This custom error type can give back the cause and traceback of an error
2022-09-20Server: Implement function for checking renewal button visibilityjwijenbergh