sdk/ts/sdk.classes.aghandler.ts

14 lines
488 B
TypeScript
Raw Normal View History

2020-03-25 15:16:03 +00:00
import * as plugins from './sdk.plugins';
2020-03-25 20:15:46 +00:00
import { AuthInfo } from './sdk.classes.authinfo';
2020-03-25 15:16:03 +00:00
2020-03-25 20:15:46 +00:00
export abstract class AAgHandler<TClaim> {
2020-03-25 15:16:03 +00:00
/**
* a slug that separates the handler from other handlers
*/
public abstract slug: string;
2020-03-25 20:15:46 +00:00
public abstract handleRequest (authInfoArg: AuthInfo<TClaim>, request: plugins.tsclass.network.ISimpleRequest): Promise<plugins.tsclass.network.ISimpleResponse>;
public abstract start(): Promise<any>;
public abstract stop(): Promise<any>;
2020-03-25 15:16:03 +00:00
}