redis, latency processor work, minor main.go cleanup, remove Greet, ScoredOffer.Latency

This commit is contained in:
2024-12-16 22:57:14 -06:00
parent 0659047a9b
commit 6660538ff9
13 changed files with 193 additions and 58 deletions

View File

@@ -2,6 +2,4 @@
// This file is automatically generated. DO NOT EDIT
import {api} from '../models';
export function Greet(arg1:string):Promise<string>;
export function Search():Promise<Array<api.ScoredOffer>>;

View File

@@ -2,10 +2,6 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function Greet(arg1) {
return window['go']['main']['App']['Greet'](arg1);
}
export function Search() {
return window['go']['main']['App']['Search']();
}

View File

@@ -198,6 +198,7 @@ export namespace api {
Offer: Offer;
Score: number;
Reasons: ScoreReason[];
Latency?: number;
static createFrom(source: any = {}) {
return new ScoredOffer(source);
@@ -208,6 +209,7 @@ export namespace api {
this.Offer = this.convertValues(source["Offer"], Offer);
this.Score = source["Score"];
this.Reasons = this.convertValues(source["Reasons"], ScoreReason);
this.Latency = source["Latency"];
}
convertValues(a: any, classs: any, asMap: boolean = false): any {