Sharkey/src/server/api/endpoint.ts

61 lines
1.7 KiB
TypeScript
Raw Normal View History

2018-07-15 21:25:35 +03:00
export default interface IEndpoint {
/**
*
*/
name: string;
/**
*
* false
*/
requireCredential?: boolean;
/**
*
*
* withCredential false
*/
limit?: {
/**
*
*/
key?: string;
/**
* (ms)
* max
*/
duration?: number;
/**
* durationで指定した期間内にいくつまでリクエストできるのか
* duration
*/
max?: number;
/**
* (ms)
*/
minInterval?: number;
};
/**
*
* false
*/
withFile?: boolean;
/**
*
* false
*/
secure?: boolean;
/**
*
*
*/
kind?: string;
}