DelServer static method

Future<OperationResponse> DelServer(
  1. ServerInfo serverInfo
)

Implementation

static Future<OperationResponse> DelServer(ServerInfo serverInfo) async {
  String jwt = await getJWT();
  final channel = await Channel.getDefaultIoTManagerChannel();
  final stub = ServerManagerClient(channel,
      options: CallOptions(metadata: {'jwt': jwt}));
  OperationResponse operationResponse = await stub.delServer(serverInfo);
  print('DelServer: ${operationResponse}');
  channel.shutdown();
  return operationResponse;
}