Build Release / check-version (push) Canceled after 0s
Build Release / Build-LiteLoader (push) Canceled after 0s
Build Release / Build-Shell (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s
43 lines
997 B
TypeScript
43 lines
997 B
TypeScript
import { GeneralCallResult } from './common';
|
|
enum ProxyType {
|
|
CLOSE = 0,
|
|
HTTP = 1,
|
|
SOCKET = 2
|
|
}
|
|
export interface NodeIKernelMSFService {
|
|
getServerTime(): string;
|
|
setNetworkProxy(param: {
|
|
userName: string,
|
|
userPwd: string,
|
|
address: string,
|
|
port: number,
|
|
proxyType: ProxyType,
|
|
domain: string,
|
|
isSocket: boolean
|
|
}): Promise<GeneralCallResult>;
|
|
getNetworkProxy(): Promise<{
|
|
userName: string,
|
|
userPwd: string,
|
|
address: string,
|
|
port: number,
|
|
proxyType: ProxyType,
|
|
domain: string,
|
|
isSocket: boolean
|
|
}>;
|
|
//http
|
|
// userName: '',
|
|
// userPwd: '',
|
|
// address: '127.0.0.1',
|
|
// port: 5666,
|
|
// proxyType: 1,
|
|
// domain: '',
|
|
// isSocket: false
|
|
//socket
|
|
// userName: '',
|
|
// userPwd: '',
|
|
// address: '127.0.0.1',
|
|
// port: 5667,
|
|
// proxyType: 2,
|
|
// domain: '',
|
|
// isSocket: true
|
|
} |