Replaces the gotoolkit helpers with the standard library and the libraries they wrapped: - gotoolkit/encoding TOML wrapper -> pelletier/go-toml/v2 directly, behind a new smtp2shoutrrr.LoadConfig shared by both commands. - gotoolkit/service + gotoolkit/model.Server -> signal.NotifyContext and a concrete *Server whose Start shuts the listener down gracefully when its context is cancelled. Also drops the unused ANONYMOUS SASL client from cmd/sendmail, bumps alpine, golangci-lint and the CI actions, and adds coverage for config loading and the server lifecycle. Closes FMG-2 Co-authored-by: multica-agent <github@multica.ai>
25 lines
810 B
Modula-2
25 lines
810 B
Modula-2
module git.nakama.town/fmartingr/smtp2shoutrrr
|
|
|
|
go 1.27.1
|
|
|
|
require (
|
|
github.com/containrrr/shoutrrr v0.8.0
|
|
github.com/emersion/go-sasl v0.0.0-20241020182733-b788ff22d5a6
|
|
github.com/emersion/go-smtp v0.25.0
|
|
github.com/pelletier/go-toml/v2 v2.4.3
|
|
github.com/stretchr/testify v1.12.1
|
|
golang.org/x/crypto/x509roots/fallback v0.0.0-20260902180247-86efde54dc70
|
|
)
|
|
|
|
require (
|
|
github.com/fatih/color v1.19.0 // indirect
|
|
github.com/go-logr/logr v1.4.4 // indirect
|
|
github.com/golang/protobuf v1.5.4 // indirect
|
|
github.com/google/go-cmp v0.7.0 // indirect
|
|
github.com/mattn/go-colorable v0.1.15 // indirect
|
|
github.com/mattn/go-isatty v0.0.24 // indirect
|
|
go.yaml.in/yaml/v3 v3.0.5 // indirect
|
|
golang.org/x/net v0.58.0 // indirect
|
|
golang.org/x/sys v0.47.0 // indirect
|
|
golang.org/x/tools v0.49.0 // indirect
|
|
)
|