Commit graph

21 commits

Author SHA1 Message Date
9c4b20b01e
Overhauling error handling of the different APIs as part of #24
- Overhauled the breaches API
- Added more tests
2022-12-22 11:55:06 +01:00
20ebd4c965
Implement a golangci-lint workflow and the accordingly GH action 2022-10-29 15:32:12 +02:00
f1d9046155
Fixed failing test 2022-10-01 16:10:25 +02:00
2a92929c20
Better test coverage for breaches API 2022-10-01 16:06:56 +02:00
5f40d8b8de
Make GoLinter happy 2022-05-08 12:09:39 +02:00
77e5a4345d
Moved all code examples into the test files using GoDoc syntax 2022-05-08 12:02:58 +02:00
43c99d2889
Merge remote-tracking branch 'origin/main' 2022-05-07 15:59:57 +02:00
49b2ac95f6
More test coverage 2022-05-07 15:59:20 +02:00
af15c66865
Adding RateLimitSleep() to all tests 2022-05-07 14:55:33 +02:00
7da9c54633
Makes no sense to return a Client pointer. Also cleaned up examples directory 2021-09-22 15:46:36 +02:00
297b5b86f1
More idiomatic naming for the rate limit handling 2021-09-22 15:25:27 +02:00
8b29b608c4
Skip tests if no API key is given where required 2021-09-22 15:16:02 +02:00
c33397ed39
Make golinter happy 2021-09-22 15:10:10 +02:00
0af72e7207
Make golinter happy 2021-09-22 15:02:12 +02:00
48fec86658
Moved apiCall() from breach to hibp. Also introduced rate limit handling 2021-09-22 15:00:29 +02:00
ed7f680919
Added BreachedAccount() to breaches API
Also added WithUserAgent() to the HIBP client for custom UA configuration
2021-09-22 13:59:22 +02:00
0b3734da33
Added BreachByName() to breaches API 2021-09-22 09:46:18 +02:00
213d2dc931 Make golinter happy 2021-09-21 19:58:03 +02:00
cf595cd5ea Make golinter happy 2021-09-21 19:56:05 +02:00
f7588a863c Introducing the breaches API
So far only the "list all breaches" API is implemented, though
2021-09-21 19:46:48 +02:00
277b45ec8d
Added breaches 2021-09-21 18:21:23 +02:00