~bigbes/core-go

ref: cbf919e45b5b2bbaec3abd98d3998320bd581dad core-go/go.mod -rw-r--r-- 2.7 KiB
aa1834b6 — Robin Jarry 1 year, 7 months ago
email: fix mime version header position

Prevent the MIME-Version header from being inserted on the first part.

Link: https://github.com/emersion/go-pgpmail/pull/15
Signed-off-by: Robin Jarry <robin@jarry.cc>
78a07dca — Robin Jarry 1 year, 7 months ago
email: fix malformed emails

go-message 0.18.2 contains a new implementation of the message line
wrapping algorithm. Without it, messages sometimes contain random line
breaks in the middle of the body.

Update to the latest tag.

Signed-off-by: Robin Jarry <robin@jarry.cc>
eeb0384a — Robin Jarry 1 year, 8 months ago
mod: use latest version for dowork

The latest version contains fixes against potential races.

Link: https://git.sr.ht/~sircmpwn/dowork/commit/d4703ef2dbb3
Link: https://git.sr.ht/~sircmpwn/dowork/commit/2b00aa42322c
Signed-off-by: Robin Jarry <robin@jarry.cc>
7457c44b — Robin Jarry 1 year, 8 months ago
treewide: update to new multi worker dowork api

The work.Queue() implementation has changed and now allows scheduling
tasks from multiple goroutines in parallel. Also, it requires a new
argument for limiting the queue buffer size in order to apply back
pressure.

Define new configuration variables to allow tuning the queue sizes and
number of workers per service:

  [mail]
  # Maximum size of the outgoing email queue (default 512).
  egress-queue-size = 512

  [$service_name]
  # Number of parallel workers per queue (default 1).
  # There are multiple queues (for egress email, webhooks, etc.).
  # This setting is applied on a per-queue basis.
  queue-workers = 1

  [webhooks]
  # Maximum size of the webhooks queue (default 512).
  queue-size = 512

Use these new settings to configure the queues and workers accordingly.

Fix unit tests as well.

Link: https://git.sr.ht/~sircmpwn/dowork/commit/95719cfc0118
Signed-off-by: Robin Jarry <robin@jarry.cc>
9e4ef2d2 — Conrad Hoffmann 1 year, 9 months ago
Upgrade Go, `go mod tidy`, build on Alpine 3.20
e1b63989 — Conrad Hoffmann 1 year, 9 months ago
redis: use UniveralClient, support sentinel mode

This commit switches the redis client to using a UniversalClient [1],
which can operate in standard, cluster, or failover (sentinel) mode.

It also implements basic support for having (multiple)
`redis+sentinel://` URLs as connection URL in the config (e.g. for
`redis-host`).

This is the Go equivalent of the proposed Python patch [2]. It supports
the same examples given there.

[1] https://pkg.go.dev/github.com/go-redis/redis/v8#UniversalClient
[2] https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/55521
069c77be — Drew DeVault 2 years ago
email: update StartTLS usage per go-smtp changes
53966da2 — Simon Ser 2 years ago
Drop gqlparser v1 dependency

Only use v2 throughout the repository.
d2ad494f — Simon Ser 2 years ago
Migrate to chi v5

v1 is not maintained anymore.
cfae7bae — Simon Ser 3 years ago
Upgrade dependencies
156c5e26 — Adnan Maolood 3 years ago
s3: Import middleware from pages.sr.ht

Closes: https://todo.sr.ht/~sircmpwn/pages.sr.ht/19
1f6fac1d — Simon Ser 3 years ago
go mod tidy

Fixes the following error when running `go test`:

    ../../go/pkg/mod/github.com/prometheus/client_golang@v1.14.0/prometheus/internal/metric.go:19:2: missing go.sum entry for module providing package github.com/prometheus/client_model/go (imported by github.com/prometheus/client_golang/prometheus); to add:
    	go get github.com/prometheus/client_golang/prometheus@v1.14.0
fa27910a — Drew DeVault 3 years ago
Add prometheus SQL connection stats

Also updates the prometheus client_go library
b1540a22 — Conrad Hoffmann 3 years ago
Update pq (Postgres driver) to latest version
dd20891a — Julien Moutinho 4 years ago
Replace x/crypto package by ProtonMail/go-crypto to support ed25519 OpenPGP keys
31e77bac — Peter Sanchez 4 years ago
Add support for mail setups that don't support TLS or Auth
4f926ddc — Drew DeVault 4 years ago
auth: fix /query/api-meta.json route

This route does not need authentication.
61ab3f08 — Drew DeVault 5 years ago
Update go-bare
407afe7d — Drew DeVault 5 years ago
Update dependencies
606ff2ef — Drew DeVault 5 years ago
Sign outgoing emails
Next