Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev into main #60

Merged
merged 8 commits into from
Nov 17, 2021
42 changes: 37 additions & 5 deletions src/proto/FunctionRpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,18 @@ message StreamingMessage {

// Worker logs a message back to the host
RpcLog rpc_log = 2;

FunctionEnvironmentReloadRequest function_environment_reload_request = 25;

FunctionEnvironmentReloadResponse function_environment_reload_response = 26;

// Ask the worker to close any open shared memory resources for a given invocation
CloseSharedMemoryResourcesRequest close_shared_memory_resources_request = 27;
CloseSharedMemoryResourcesResponse close_shared_memory_resources_response = 28;

// Worker indexing message types
FunctionsMetadataRequest functions_metadata_request = 29;
FunctionMetadataResponses function_metadata_responses = 30;
}
}

Expand Down Expand Up @@ -260,6 +264,30 @@ message RpcFunctionMetadata {

// Is set to true for proxy
bool is_proxy = 7;

// Function indexing status
StatusResult status = 8;

// Function language
string language = 9;

// Raw binding info
repeated string raw_bindings = 10;
}

// Host tells worker it is ready to receive metadata
message FunctionsMetadataRequest {
// base directory for function app
string function_app_directory = 1;
}

// Worker sends function metadata back to host
message FunctionMetadataResponses {
// list of function indexing responses
repeated FunctionLoadRequest function_load_requests_results = 1;

// status of overall metadata request
StatusResult result = 2;
}

// Host requests worker to invoke a Function
Expand Down Expand Up @@ -453,8 +481,9 @@ message RpcLog {

// Category of the log. Defaults to User if not specified.
enum RpcLogCategory {
User = 0;
System = 1;
User = 0;
System = 1;
CustomMetric = 2;
}

// Unique id for invocation (if exists)
Expand All @@ -476,11 +505,14 @@ message RpcLog {
// Exception (if exists)
RpcException exception = 6;

// json serialized property bag, or could use a type scheme like map<string, TypedData>
// json serialized property bag
string properties = 7;

// Category of the log. Either user(default) or system.
// Category of the log. Either user(default), system, or custom metric.
RpcLogCategory log_category = 8;

// strongly-typed (ish) property bag
map<string, TypedData> propertiesMap = 9;
}

// Encapsulates an Exception
Expand Down