hookRPC
This commit is contained in:
@@ -27,7 +27,7 @@ Logger.configure({
|
|||||||
})
|
})
|
||||||
const logger = Logger.getLogger("admin")
|
const logger = Logger.getLogger("admin")
|
||||||
|
|
||||||
type hookRpc = { type: 'hook', generator: (socket) => Function, unhook:(uid:string)=>Promise<ErrorResponse|SuccessResponse>}
|
type hookRPC = { type: 'hook', generator: (socket) => Function, unhook:(uid:string)=>Promise<ErrorResponse|SuccessResponse>}
|
||||||
type unhookRPC = { type: 'unhook', fn: Function}
|
type unhookRPC = { type: 'unhook', fn: Function}
|
||||||
type callRPC = { type: 'call', fn: Function}
|
type callRPC = { type: 'call', fn: Function}
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ export type rpcInfo = {
|
|||||||
owner: string,
|
owner: string,
|
||||||
name: string,
|
name: string,
|
||||||
args: string,
|
args: string,
|
||||||
info: hookRpc | unhookRPC | callRPC
|
info: hookRPC | unhookRPC | callRPC
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user