Skip to content

Commit

Permalink
Merge pull request #212 from aau-network-security/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mrtrkmn authored Aug 13, 2021
2 parents 63443d9 + d697db5 commit 316e057
Show file tree
Hide file tree
Showing 7 changed files with 1,512 additions and 10 deletions.
143 changes: 143 additions & 0 deletions client/daemon_grpc_web_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -1250,6 +1250,149 @@ proto.daemon.DaemonPromiseClient.prototype.solveChallenge =
};


/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.daemon.AddChallengeRequest,
* !proto.daemon.AddChallengeResponse>}
*/
const methodDescriptor_Daemon_AddChallenge = new grpc.web.MethodDescriptor(
'/daemon.Daemon/AddChallenge',
grpc.web.MethodType.SERVER_STREAMING,
proto.daemon.AddChallengeRequest,
proto.daemon.AddChallengeResponse,
/** @param {!proto.daemon.AddChallengeRequest} request */
function(request) {
return request.serializeBinary();
},
proto.daemon.AddChallengeResponse.deserializeBinary
);


/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.daemon.AddChallengeRequest,
* !proto.daemon.AddChallengeResponse>}
*/
const methodInfo_Daemon_AddChallenge = new grpc.web.AbstractClientBase.MethodInfo(
proto.daemon.AddChallengeResponse,
/** @param {!proto.daemon.AddChallengeRequest} request */
function(request) {
return request.serializeBinary();
},
proto.daemon.AddChallengeResponse.deserializeBinary
);


/**
* @param {!proto.daemon.AddChallengeRequest} request The request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!grpc.web.ClientReadableStream<!proto.daemon.AddChallengeResponse>}
* The XHR Node Readable Stream
*/
proto.daemon.DaemonClient.prototype.addChallenge =
function(request, metadata) {
return this.client_.serverStreaming(this.hostname_ +
'/daemon.Daemon/AddChallenge',
request,
metadata || {},
methodDescriptor_Daemon_AddChallenge);
};


/**
* @param {!proto.daemon.AddChallengeRequest} request The request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!grpc.web.ClientReadableStream<!proto.daemon.AddChallengeResponse>}
* The XHR Node Readable Stream
*/
proto.daemon.DaemonPromiseClient.prototype.addChallenge =
function(request, metadata) {
return this.client_.serverStreaming(this.hostname_ +
'/daemon.Daemon/AddChallenge',
request,
metadata || {},
methodDescriptor_Daemon_AddChallenge);
};


/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.daemon.AddNotificationRequest,
* !proto.daemon.AddNotificationResponse>}
*/
const methodDescriptor_Daemon_AddNotification = new grpc.web.MethodDescriptor(
'/daemon.Daemon/AddNotification',
grpc.web.MethodType.UNARY,
proto.daemon.AddNotificationRequest,
proto.daemon.AddNotificationResponse,
/** @param {!proto.daemon.AddNotificationRequest} request */
function(request) {
return request.serializeBinary();
},
proto.daemon.AddNotificationResponse.deserializeBinary
);


/**
* @const
* @type {!grpc.web.AbstractClientBase.MethodInfo<
* !proto.daemon.AddNotificationRequest,
* !proto.daemon.AddNotificationResponse>}
*/
const methodInfo_Daemon_AddNotification = new grpc.web.AbstractClientBase.MethodInfo(
proto.daemon.AddNotificationResponse,
/** @param {!proto.daemon.AddNotificationRequest} request */
function(request) {
return request.serializeBinary();
},
proto.daemon.AddNotificationResponse.deserializeBinary
);


/**
* @param {!proto.daemon.AddNotificationRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.Error, ?proto.daemon.AddNotificationResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.daemon.AddNotificationResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.daemon.DaemonClient.prototype.addNotification =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/daemon.Daemon/AddNotification',
request,
metadata || {},
methodDescriptor_Daemon_AddNotification,
callback);
};


/**
* @param {!proto.daemon.AddNotificationRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @return {!Promise<!proto.daemon.AddNotificationResponse>}
* A native promise that resolves to the response
*/
proto.daemon.DaemonPromiseClient.prototype.addNotification =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/daemon.Daemon/AddNotification',
request,
metadata || {},
methodDescriptor_Daemon_AddNotification);
};


/**
* @const
* @type {!grpc.web.MethodDescriptor<
Expand Down
Loading

0 comments on commit 316e057

Please sign in to comment.