Commit Graph
9 Commits
Author SHA1 Message Date
Martin HoffmannandGitHub 4acdd84ab9 Refactoring and reorganizing. (#1258)
This PR refactors and reorganizes a lot of code. It attempts to organize
things in a way that allows to keep more things private. Conversely, it
made the fields of many data-only structs pub and removed the creator,
accessor, and unpack methods for those.

The PR deliberately avoid any functional code changes given that due to
its sheer size, it is essentially unreviewable.

This is also why it stopped short of re-organizing the structure of the
actual server, ie., the Krillserver and the daemon::http module which
currently have a rather blurry distinction. A follow-up PR will create a
more clear separation but this requires code changes.
2025-03-21 15:20:36 +01:00
Tim Bruijnzeels 63a76dc370 Moving publisher API definitions to krill-commons, and use updated module names. 2019-03-13 15:26:36 +01:00
Tim Bruijnzeels 8b4db0bfcb Re-architecting the application to use event sourcing (fixes: #35) 2019-02-15 15:24:50 +01:00
Tim Bruijnzeels bcff964f56 Splitting the repository server into modules, starting to move RRDP data into api::rrdp_data 2019-01-29 15:05:04 +01:00
Tim Bruijnzeels afb9ba69f3 Re-organising api data module names in prep of also moving RRDP data definitions here (which will help with integration testing) 2019-01-29 14:03:15 +01:00
Tim Bruijnzeels 6248f0baf0 Introducing api client (issue #34). Still things to do, see below.
Done:
* api client introduced
* code can do a list and parse the json response

Todo:
* Token validation on API
* Synchronise directory
* Binary for api client
* Format output for client (text/json/none)
* Cleanup, most notably move http client code into util for re-use.
2019-01-23 16:48:14 +01:00
Tim Bruijnzeels 0ffcd18e74 Moving shared API data (between server and client) into its own module. 2019-01-23 16:48:14 +01:00
Tim Bruijnzeels 68b74fb004 Introducing authorisation on the API (issue #8) 2019-01-03 17:03:30 +01:00
Tim Bruijnzeels cfdff770b4 Some more restructuring of the basic API. Closing #4 now, but surely this will still be refactored as more methods are added to the API. 2019-01-02 16:19:41 +01:00