summaryrefslogtreecommitdiff
path: root/types
AgeCommit message (Collapse)Author
2024-11-21Replace all links from GitHub to Codebergjwijenbergh
2024-10-29All: Refactor to latest ProxyGuardjwijenbergh
2024-05-30Cookie: Return the context without handle if no handle was givenjwijenbergh
2024-05-29Discovery: Improve search using levenshtein distance and sortingjwijenbergh
2024-05-29Discovery: return country_code to the clientjwijenbergh
2024-05-29Discovery: Implement search and do not return keywordsjwijenbergh
This patch implements search by adding a second argument to DiscoOrganizations and DiscoServers. A search string of = "" returns everything. This also makes the subset that is returned to the client even fewer, no keywords.
2024-05-29Discovery: Return a subset to the clientJeroen Wijenbergh
2024-05-24Types Protocol: Add TestJeroen Wijenbergh
2024-03-12Profiles + Server: Also expose default gateway settings in profilejwijenbergh
2024-02-23Types Server: Fix Proxy peer docjwijenbergh
2024-02-19WireGuard: Latest proxyguard server API changesjwijenbergh
wireguard+proxy profile and ProxyEndpoint instead of TCPEndpoint as proxyguard now uses HTTP for the initial packet
2024-02-19All: Document everything to pass revive lintjwijenbergh
2024-02-19Types Server: Formatjwijenbergh
2024-02-19Types server: Document proxy argumentsjwijenbergh
2024-02-19Format: Run gofumptjwijenbergh
2024-02-19API + Server: Support vpn_proto_transport_listjwijenbergh
2024-02-19WireGuard: TCP support using proxyguardjwijenbergh
2024-02-19Types Server: Explain when the profile map can be emptyjwijenbergh
2024-02-19Types Server: omitempty for support contacts and locationsjwijenbergh
2024-02-19Configuration: Expose dns_search_domainsjwijenbergh
2024-02-19Server Tokens: Rename `expires_in` to `expires_at`jwijenbergh
expires_in was confusing
2024-02-19Types Server: Remove protocols from profilejwijenbergh
2024-02-19Cookie + Exports: Store and return the cookie from the underlying contextjwijenbergh
This has the ability so that we can easily get the same cookie back in the client package by creating the one from the context
2024-02-19All: Prepare to get rid of go-errors/errors libjwijenbergh
2023-09-25Initial i18n implementationjwijenbergh
2023-09-25Client + Types: Expose support contactjwijenbergh
2023-09-25Types Discovery: Omitempty for some types that are not always therejwijenbergh
This makes sure that instead of "authentication_url_template": "" we get not even an "authentication_url_template" key This matches the upstream discovery format more 1:1
2023-09-25Server: Support unmarshalling server as a stringjwijenbergh
This is for V1 configs
2023-09-25All: Implement a token handlerjwijenbergh
This implements a token handler for OAuth tokens. Clients can use the SetTokenHandler function in exports to set a token handler. It needs two arguments, a getter and a setter. The getter is a callback with three arguments: - The server to get the tokens for, in types.server.current as JSON - The output buffer - The output buffer maximum length The tokens should be written to the output buffer with maximum length. The type should be types.server.Tokens and be marshalled as JSON. If no tokens are available, leave the output buffer intact The token setter is a callback with two arguments: - The server for which to set the tokens for, in types.server.Current as JSON - The tokens, defined in types.server.Tokens as JSON Breaking changes: - No more tokens as arguments, was already deprecated in previous commits - Tokens are no longer returned in types.server.Configuration
2023-09-25Types Server: Implement required ask transition needed for clientjwijenbergh
2023-09-25Types: Add a new cookie typejwijenbergh
Used as a specialized context in state callbacks and for cancellation
2023-09-25Types Server: Pass locations to secure internetjwijenbergh
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-25Docs + Types server: Add comments about script-securityjwijenbergh
2023-09-25Types: Add comments describing the fields, types, packages and functionsjwijenbergh
2023-09-25Types Server: Remove identifier from profilejwijenbergh
It is already contained in the profiles map as the key
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-25Types: Move public types to one filejwijenbergh
2022-12-12simplify error handlingAleksandar Pesic
fixes #6 Signed-off-by: Aleksandar Pesic <peske.nis@gmail.com>
2022-11-28Lint: Use gocritic linter and fix errors returned by itjwijenbergh
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-24Style: Use stylecheck and fix errorsjwijenbergh
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-19Discovery + Server: Remove unused 'Raw' stringsjwijenbergh
2022-09-27Log: Add 'inherit' that sets the error level as the log leveljwijenbergh
2022-09-26Refactor: Errors into custom export types and expose typesjwijenbergh