summaryrefslogtreecommitdiff
path: root/internal
AgeCommit message (Collapse)Author
2022-12-21Failover: Pass logger and add debug statementsjwijenbergh
2022-12-21Client + Exports: Forward tokens for /disconnectjwijenbergh
2022-12-21Exports + OAuth + Server: Forward tokens to getting a configjwijenbergh
2022-12-21Failover: Initial implementationjwijenbergh
2022-12-21Server: Implement forcing WireGuard selection through envjwijenbergh
2022-12-21FSM: Do not exec mmdc for mermaidjwijenbergh
2022-12-21OAuth: Do not export ExchangeSessionjwijenbergh
2022-12-21OAuth: Use a mutex to protect the token structurejwijenbergh
2022-12-15OAuth: Ignore liniting error when closing serverjwijenbergh
2022-12-15OAuth: Use a channel to communicate handler errorsjwijenbergh
2022-12-14Log: Change Inherit to take format argumentsjwijenbergh
2022-12-14Verify: Use 'os' for reading a file instead of 'ioutil'jwijenbergh
2022-12-14Server: Fix revive lint errorjwijenbergh
``` internal/server/servers.go:51:9: indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive) } else { return srv, nil } ```
2022-12-12FSM: Remove HasTransition functionjwijenbergh
2022-12-12Format: Run gofumptjwijenbergh
2022-12-12FSM: Include state name in error messagejwijenbergh
2022-12-12Server + Exports: Rename and simplify GetCurrentProfileIndexjwijenbergh
2022-12-12Util: Minor style changesjwijenbergh
2022-12-12Server: Minor style changesjwijenbergh
2022-12-12OAuth: Minor style changesjwijenbergh
2022-12-12Log: Simplify GetErrorLeveljwijenbergh
2022-12-12Discovery: Minor style changes with variable namesjwijenbergh
2022-12-12simplify error handlingAleksandar Pesic
fixes #6 Signed-off-by: Aleksandar Pesic <peske.nis@gmail.com>
2022-12-08OAuth: Comment fixesjwijenbergh
Minor changes from PR #9 Co-authored-by: fkooman <fkooman@tuxed.net>
2022-11-28Server: Split more into multiple implementation filesjwijenbergh
2022-11-28Lint: Use gocritic linter and fix errors returned by itjwijenbergh
2022-11-28Linter: Fix dupword errorsjwijenbergh
2022-11-28Log: Fix copy&paste function commentsjwijenbergh
2022-11-28Log: Define f prefix for log functions to indicate printf likejwijenbergh
2022-11-28OAuth: Define ReadHeaderTimeoutjwijenbergh
2022-11-28OAuth Listener: Explicitly specify localhostjwijenbergh
2022-11-28Formatting: Run golinesjwijenbergh
2022-11-28Formatting: Run gofumpt -wjwijenbergh
2022-11-28Refactor: Fix revive linter errors by deleting redundant prefixesjwijenbergh
2022-11-28OAuth: Refactor Token getting and do not save them in the configjwijenbergh
This commit refactors getting the tokens into receiver methods. This means that functions do not have to call the cryptic "EnsureTokens" method. The receiver getter then already verifier whether or not the tokens could be obtained (and refreshes too). The downside is that some things are now private, so testing for invalid tokens needs to be done somewhere else. This needs another patch such that clients can save the tokens themselves using a keyring.
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-25Discovery + Exports: Rename variable to not clash with server pkgjwijenbergh
2022-11-24Style: Use stylecheck and fix errorsjwijenbergh
2022-11-24Discovery + Server: Get rid of unused importsjwijenbergh
2022-11-24Util: Get rid of current time helperjwijenbergh
Fixes #5
2022-11-23FSM: Check unhandled transitionsjwijenbergh
2022-11-17Log: Rename log file to logjwijenbergh
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-10HTTP: Fix typo in status errorjwijenbergh
2022-11-10Logging: Add a Debug leveljwijenbergh
This makes the levels more logical
2022-11-10Server: Re-initialize endpoints when getting a configjwijenbergh
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