summaryrefslogtreecommitdiff
tag namev0.62.0 (3bdbfb50c0229d95891af058260db59f20dc6e86)
tag date2026-04-04 14:15:30 +0700
tagged byShulhan <ms@kilabit.info>
tagged objectcommit d5810b984f...
downloadpakakeh.go-0.62.0.tar.xz
Release pakakeh.go v0.62.0 (2026-04-04)
== cmd/httpdfs 🌱 Add option to set base path and shutdown idle duration The -base-path option set the URL prefix for serving HTTP request. The -shutdown-idle option set the duration when server will stop accepting new connections and shutting down. == lib/dns 🪵 lib/dns: refactoring DoT and DoH to use address instead of port Using port makes the IP address of DNS-over-TLS (DoT) and DNS-over-HTTPS (DoH) listen on the same address with UDP. If we set ListenAddress to 0.0.0.0 and TLS termination is handled by proxy, this cause DoT and DoH will also listen on all addresses (the ports open to public). == lib/http 🌱 Add BasePath to the ServerOptions The BasePath allow server to serve HTTP from custom prefix, other than "/". Each request that server received will remove the BasePath first from the [http.Request.URL.Path] before passing to the handler. Each redirect that server sent will add the BasePath as the prefix to redirect URL. Any trailing slash in the BasePath will be removed. 🌱 Implement server auto shutdown when idle In the ServerOptions, we add option ShutdownIdleDuration when set to non-zero value it will start a timer. When the timer expired, the server will stop accepting new connection and then shutting down. This allow de-activating HTTP server when no connections received after specific duration to reduce the system resources. 🌼 lib/http: fix possible data race in SSE connection When server’s handler call Write or WriteRaw, there is possibility that the worker for keeping the connection alive also call Write at the same time, which cause the data race. == lib/paseto 🪵 Move paseto v2 under sub directory "v2" There are new versions of paseto standard: version 3 and version 4. To minimize conflicts in the future, we move the old implementation of paseto v2 to sub directory "v2" with package name "pasetov2". 🌱 lib/paseto/v4: new package that implements Paseto version 4 paseto/v4 provides a simple, ready to use, opinionated implementation of Platform-Agnostic SEcurity TOkens (PASETO) version 4 as defined in [paseto-v4]. [paseto-v4]: https://github.com/paseto-standard/paseto-spec/blob/master/docs/01-Protocol-Versions/Version4.md == 🌱 lib/uuidv7 New package that implements UUID version 7. The uuidv7 package provides type UUIDv7 as the container for UUID version 7 that satisfy the [database/sql], [encoding/gob], and [encoding/json]. The implementation follow RFC 9562. -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSyS35x1RIQ2SkuGz5KU2C1AMnE8AUCadC6mwAKCRBKU2C1AMnE 8BnSAQDkjYayIFQ5ALu8j9s2e1MK/6wS2EUUtq3YaSNB9F4qHAEAs73lO8K1jrxZ mjGMTVRZl2ad1YK+zleHhnot06JqgAg= =hUWo -----END PGP SIGNATURE-----