mirror of
https://github.com/kennethnym/aris.git
synced 2026-02-02 13:11:17 +00:00
feat(backend): add FeedEngineService
Manages FeedEngine instances per user with auto-registration of sources from FeedSourceProvider implementations. - Add FeedSourceProvider interface - Add FeedEngineService with providers array injection - Update LocationService to implement FeedSourceProvider Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import { LocationSource, type Location } from "@aris/source-location"
|
||||
|
||||
import type { FeedSourceProvider } from "../feed/service.ts"
|
||||
|
||||
import { UserNotFoundError } from "../lib/error.ts"
|
||||
|
||||
/**
|
||||
* Manages LocationSource instances per user.
|
||||
*/
|
||||
export class LocationService {
|
||||
export class LocationService implements FeedSourceProvider {
|
||||
private sources = new Map<string, LocationSource>()
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user