forked from faasm/faabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
131 changed files
with
13,052 additions
and
11,182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
BasedOnStyle: Mozilla | ||
|
||
--- | ||
Language: Cpp | ||
|
||
# Avoid excessive linebreaks on function definitions | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakAfterReturnType: None | ||
|
||
IndentWidth: 4 | ||
DerivePointerAlignment: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Find all .h or .cpp files we want to format | ||
FILES=$(find . \( -name "*.h" -o -name "*.cpp" -o -name "*.c" \) \ | ||
-not -path "./build/*" \ | ||
-not -path "./third-party/*") | ||
|
||
for f in $FILES | ||
do | ||
echo "Format $f" | ||
clang-format-10 -i $f | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
#pragma once | ||
|
||
#include <pistache/http.h> | ||
#include <pistache/endpoint.h> | ||
#include <faabric/util/config.h> | ||
#include <pistache/endpoint.h> | ||
#include <pistache/http.h> | ||
#include <proto/faabric.pb.h> | ||
|
||
|
||
namespace faabric::endpoint { | ||
class Endpoint { | ||
public: | ||
Endpoint() = default; | ||
class Endpoint | ||
{ | ||
public: | ||
Endpoint() = default; | ||
|
||
Endpoint(int port, int threadCount); | ||
|
||
Endpoint(int port, int threadCount); | ||
void start(); | ||
|
||
void start(); | ||
virtual std::shared_ptr<Pistache::Http::Handler> getHandler() = 0; | ||
|
||
virtual std::shared_ptr<Pistache::Http::Handler> getHandler() = 0; | ||
private: | ||
int port = faabric::util::getSystemConfig().endpointPort; | ||
int threadCount = faabric::util::getSystemConfig().endpointNumThreads; | ||
}; | ||
private: | ||
int port = faabric::util::getSystemConfig().endpointPort; | ||
int threadCount = faabric::util::getSystemConfig().endpointNumThreads; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.