Commit graph

10 commits

Author SHA1 Message Date
Winni Neessen 878c4dfe71
Update URLs to point to new repository domain
The URLs in all the files that reference the old domain (github.com) have been updated to reference the new domain (src.neessen.cloud). This includes URLs in badges, links in the README.md, import paths in .go files, and module paths in go.mod and .golangci.toml.
2024-02-11 15:24:46 +01:00
Winni Neessen a5667bb828
Add bearer token authentication
In this commit, we've added the capability to authenticate via bearer token to Meteologix's HTTP client. A new method "WithBearerToken" has been implemented, allowing a bearer token to be set in 'meteologix.go'. Additionally, in 'httpclient.go', the token is attached to the "Authorization" header for API requests. Tests asserting token setting functionality have been added in 'meteologix_test.go'. These changes open up an alternative authentication option for our API users. The bearer auth is not public yet, so there is no way for us to test this auth
2023-08-02 16:08:38 +02:00
Winni Neessen 03d274846e
Added weather symbol to current weather
- Also refactored some types
- Introduced GenericString type
2023-05-24 22:00:47 +02:00
Winni Neessen dec578e751
Added CODE_OF_CONDUCT.md, CONTRIBUTING.md and updated mail address in CopyrightText 2023-05-21 11:46:23 +02:00
Winni Neessen 18cf41f940
More observation data and test coverage 2023-05-16 12:02:19 +02:00
Winni Neessen 62f08dbfb3
Code restructuring and User-Agent adjustments 2023-05-15 16:12:28 +02:00
Winni Neessen 1fbbaf0a7b
Added mock API support 2023-05-15 16:02:04 +02:00
Winni Neessen 8441b60d15
Minor changes
- Non-negative HTTP response handling
- Renamed station method names and comments
2023-05-13 18:44:29 +02:00
Winni Neessen 50ad3747fc
Renamed some struct fields and added more test coverage 2023-05-13 13:18:47 +02:00
Winni Neessen 2ed373adf0
Initial checkin 2023-05-12 12:44:27 +02:00