Implement service layer #3
|
|
@ -46,21 +46,25 @@
|
||||||
- [X] Implement quote fetching with HTTP client
|
- [X] Implement quote fetching with HTTP client
|
||||||
- [X] Add basic error handling
|
- [X] Add basic error handling
|
||||||
|
|
||||||
## Phase 3: Basic Server Architecture
|
## Phase 3: Service Layer Implementation
|
||||||
- [ ] Set up dependency injection framework (wire/dig)
|
**Goal**: Complete service layer with DI for handling requests (untied from TCP presentation)
|
||||||
- [ ] Create core interfaces and contracts
|
|
||||||
|
- [X] Create service layer interfaces and contracts
|
||||||
|
- [X] Implement quote request service workflow
|
||||||
|
- [X] Integrate PoW challenge generation and verification
|
||||||
|
- [X] Set up simple dependency wiring
|
||||||
|
- [X] Implement full request-response cycle
|
||||||
|
- [X] Add comprehensive service layer tests
|
||||||
|
- [X] Add error handling and validation
|
||||||
|
- [X] Create public concrete WisdomService type
|
||||||
|
- [X] Add workflow tests with real PoW implementations
|
||||||
|
- [X] Add unsuccessful flow tests for invalid solutions
|
||||||
|
|
||||||
|
## Phase 4: Basic Server Architecture
|
||||||
- [ ] Set up structured logging (zerolog/logrus)
|
- [ ] Set up structured logging (zerolog/logrus)
|
||||||
- [ ] Set up metrics collection (prometheus)
|
- [ ] Set up metrics collection (prometheus)
|
||||||
- [ ] Create configuration management
|
- [ ] Create configuration management
|
||||||
- [ ] Integrate PoW and quote packages into server architecture
|
- [ ] Integrate all components into server architecture
|
||||||
|
|
||||||
## Phase 4: Quote Management System
|
|
||||||
- [ ] Define quote storage interface
|
|
||||||
- [ ] Implement in-memory quote repository (fake)
|
|
||||||
- [ ] Create quote selection service (random)
|
|
||||||
- [ ] Load initial quote collection from file/config
|
|
||||||
- [ ] Add quote validation and sanitization
|
|
||||||
- [ ] Write unit tests for quote management
|
|
||||||
|
|
||||||
## Phase 5: TCP Protocol Implementation
|
## Phase 5: TCP Protocol Implementation
|
||||||
- [ ] Implement binary message protocol codec
|
- [ ] Implement binary message protocol codec
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue