[Config] Handle kafka

This commit is contained in:
Diego Magdaleno 2021-07-29 09:56:00 -05:00
parent e0acff92c1
commit b96bed64a3
No known key found for this signature in database
GPG Key ID: 48CD529B9FD561E8

View File

@ -33,6 +33,11 @@ export interface Region {
optimal: boolean,
}
export interface KafkaBroker {
ip: string,
port: number
}
export interface DefaultOptions {
gateway: {
endpoint: string | null;
@ -129,6 +134,9 @@ export interface DefaultOptions {
default: string;
available: Region[];
}
kafka: {
brokers: KafkaBroker[]
}
}
export const DefaultOptions: DefaultOptions = {
@ -226,6 +234,11 @@ export const DefaultOptions: DefaultOptions = {
{ id: "fosscord", name: "Fosscord", vip: false, custom: false, deprecated: false, optimal: false },
]
},
kafka: {
brokers: [
{ ip: "localhost", port: 9092 }
]
}
};
export const ConfigSchema = new Schema({}, { strict: false });