Go to file
Alex Palaistras 4edf851665 Break out SMS/Message provider, add tests
This commit represents a first step in modularizing the Andrews & Arnold
SGX in particular, and setting up a pattern for future Go-based SGX
implementations more broadly, by breaking out the notion of a message
"provider", that is, a remote API integrated against in sending and
receiving messages.

Modularizing at the level of the provider here will allow unit tests to
be written against a mock provider in the future, but this commit also
integrates tests against the concrete A&A provider, using a mock HTTP
client.

Changes here have been kept intentionally minimal to reduce the diff;
future efforts will see us pull functionalities into their own packages
to better maintain separation of concerns.
2023-12-17 15:05:48 +00:00
.builds Guix and CI 2023-11-06 11:09:50 -05:00
.gitignore Initial commit 2023-11-06 11:09:22 -05:00
COPYING Initial commit 2023-11-06 11:09:22 -05:00
go.mod Initial commit 2023-11-06 11:09:22 -05:00
go.sum Initial commit 2023-11-06 11:09:22 -05:00
guix.scm Guix and CI 2023-11-06 11:09:50 -05:00
main.go Break out SMS/Message provider, add tests 2023-12-17 15:05:48 +00:00
provider.go Break out SMS/Message provider, add tests 2023-12-17 15:05:48 +00:00
provider_test.go Break out SMS/Message provider, add tests 2023-12-17 15:05:48 +00:00