Documentation ¶
Overview ¶
Package rpc is a generated protocol buffer package.
It is generated from these files:
FunctionRpc.proto
It has these top-level messages:
StreamingMessage StartStream WorkerInitRequest WorkerInitResponse StatusResult WorkerHeartbeat WorkerTerminate FileChangeEventRequest WorkerActionResponse WorkerStatusRequest WorkerStatusResponse FunctionLoadRequest FunctionLoadResponse RpcFunctionMetadata InvocationRequest InvocationCancel InvocationResponse TypedData ParameterBinding BindingInfo RpcLog RpcException RpcHttp
Index ¶
- Variables
- func RegisterFunctionRpcServer(s *grpc.Server, srv FunctionRpcServer)
- type BindingInfo
- type BindingInfo_Direction
- type FileChangeEventRequest
- func (*FileChangeEventRequest) Descriptor() ([]byte, []int)
- func (m *FileChangeEventRequest) GetFullPath() string
- func (m *FileChangeEventRequest) GetName() string
- func (m *FileChangeEventRequest) GetType() FileChangeEventRequest_Type
- func (*FileChangeEventRequest) ProtoMessage()
- func (m *FileChangeEventRequest) Reset()
- func (m *FileChangeEventRequest) String() string
- type FileChangeEventRequest_Type
- type FunctionLoadRequest
- func (*FunctionLoadRequest) Descriptor() ([]byte, []int)
- func (m *FunctionLoadRequest) GetFunctionId() string
- func (m *FunctionLoadRequest) GetMetadata() *RpcFunctionMetadata
- func (*FunctionLoadRequest) ProtoMessage()
- func (m *FunctionLoadRequest) Reset()
- func (m *FunctionLoadRequest) String() string
- type FunctionLoadResponse
- type FunctionRpcClient
- type FunctionRpcServer
- type FunctionRpc_EventStreamClient
- type FunctionRpc_EventStreamServer
- type InvocationCancel
- type InvocationRequest
- func (*InvocationRequest) Descriptor() ([]byte, []int)
- func (m *InvocationRequest) GetFunctionId() string
- func (m *InvocationRequest) GetInputData() []*ParameterBinding
- func (m *InvocationRequest) GetInvocationId() string
- func (m *InvocationRequest) GetTriggerMetadata() map[string]*TypedData
- func (*InvocationRequest) ProtoMessage()
- func (m *InvocationRequest) Reset()
- func (m *InvocationRequest) String() string
- type InvocationResponse
- func (*InvocationResponse) Descriptor() ([]byte, []int)
- func (m *InvocationResponse) GetInvocationId() string
- func (m *InvocationResponse) GetOutputData() []*ParameterBinding
- func (m *InvocationResponse) GetResult() *StatusResult
- func (m *InvocationResponse) GetReturnValue() *TypedData
- func (*InvocationResponse) ProtoMessage()
- func (m *InvocationResponse) Reset()
- func (m *InvocationResponse) String() string
- type ParameterBinding
- type RpcException
- type RpcFunctionMetadata
- func (*RpcFunctionMetadata) Descriptor() ([]byte, []int)
- func (m *RpcFunctionMetadata) GetBindings() map[string]*BindingInfo
- func (m *RpcFunctionMetadata) GetDirectory() string
- func (m *RpcFunctionMetadata) GetEntryPoint() string
- func (m *RpcFunctionMetadata) GetName() string
- func (m *RpcFunctionMetadata) GetScriptFile() string
- func (*RpcFunctionMetadata) ProtoMessage()
- func (m *RpcFunctionMetadata) Reset()
- func (m *RpcFunctionMetadata) String() string
- type RpcHttp
- func (*RpcHttp) Descriptor() ([]byte, []int)
- func (m *RpcHttp) GetBody() *TypedData
- func (m *RpcHttp) GetHeaders() map[string]string
- func (m *RpcHttp) GetIsRaw() bool
- func (m *RpcHttp) GetMethod() string
- func (m *RpcHttp) GetParams() map[string]string
- func (m *RpcHttp) GetQuery() map[string]string
- func (m *RpcHttp) GetStatusCode() string
- func (m *RpcHttp) GetUrl() string
- func (*RpcHttp) ProtoMessage()
- func (m *RpcHttp) Reset()
- func (m *RpcHttp) String() string
- type RpcLog
- func (*RpcLog) Descriptor() ([]byte, []int)
- func (m *RpcLog) GetCategory() string
- func (m *RpcLog) GetEventId() string
- func (m *RpcLog) GetException() *RpcException
- func (m *RpcLog) GetInvocationId() string
- func (m *RpcLog) GetLevel() RpcLog_Level
- func (m *RpcLog) GetMessage() string
- func (m *RpcLog) GetProperties() string
- func (*RpcLog) ProtoMessage()
- func (m *RpcLog) Reset()
- func (m *RpcLog) String() string
- type RpcLog_Level
- type StartStream
- type StatusResult
- func (*StatusResult) Descriptor() ([]byte, []int)
- func (m *StatusResult) GetException() *RpcException
- func (m *StatusResult) GetLogs() []*RpcLog
- func (m *StatusResult) GetResult() string
- func (m *StatusResult) GetStatus() StatusResult_Status
- func (*StatusResult) ProtoMessage()
- func (m *StatusResult) Reset()
- func (m *StatusResult) String() string
- type StatusResult_Status
- type StreamingMessage
- func (*StreamingMessage) Descriptor() ([]byte, []int)
- func (m *StreamingMessage) GetContent() isStreamingMessage_Content
- func (m *StreamingMessage) GetFileChangeEventRequest() *FileChangeEventRequest
- func (m *StreamingMessage) GetFunctionLoadRequest() *FunctionLoadRequest
- func (m *StreamingMessage) GetFunctionLoadResponse() *FunctionLoadResponse
- func (m *StreamingMessage) GetInvocationCancel() *InvocationCancel
- func (m *StreamingMessage) GetInvocationRequest() *InvocationRequest
- func (m *StreamingMessage) GetInvocationResponse() *InvocationResponse
- func (m *StreamingMessage) GetRequestId() string
- func (m *StreamingMessage) GetRpcLog() *RpcLog
- func (m *StreamingMessage) GetStartStream() *StartStream
- func (m *StreamingMessage) GetWorkerActionResponse() *WorkerActionResponse
- func (m *StreamingMessage) GetWorkerHeartbeat() *WorkerHeartbeat
- func (m *StreamingMessage) GetWorkerInitRequest() *WorkerInitRequest
- func (m *StreamingMessage) GetWorkerInitResponse() *WorkerInitResponse
- func (m *StreamingMessage) GetWorkerStatusRequest() *WorkerStatusRequest
- func (m *StreamingMessage) GetWorkerStatusResponse() *WorkerStatusResponse
- func (m *StreamingMessage) GetWorkerTerminate() *WorkerTerminate
- func (*StreamingMessage) ProtoMessage()
- func (m *StreamingMessage) Reset()
- func (m *StreamingMessage) String() string
- func (*StreamingMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type StreamingMessage_FileChangeEventRequest
- type StreamingMessage_FunctionLoadRequest
- type StreamingMessage_FunctionLoadResponse
- type StreamingMessage_InvocationCancel
- type StreamingMessage_InvocationRequest
- type StreamingMessage_InvocationResponse
- type StreamingMessage_RpcLog
- type StreamingMessage_StartStream
- type StreamingMessage_WorkerActionResponse
- type StreamingMessage_WorkerHeartbeat
- type StreamingMessage_WorkerInitRequest
- type StreamingMessage_WorkerInitResponse
- type StreamingMessage_WorkerStatusRequest
- type StreamingMessage_WorkerStatusResponse
- type StreamingMessage_WorkerTerminate
- type TypedData
- func (*TypedData) Descriptor() ([]byte, []int)
- func (m *TypedData) GetBytes() []byte
- func (m *TypedData) GetData() isTypedData_Data
- func (m *TypedData) GetDouble() float64
- func (m *TypedData) GetHttp() *RpcHttp
- func (m *TypedData) GetInt() int64
- func (m *TypedData) GetJson() string
- func (m *TypedData) GetStream() []byte
- func (m *TypedData) GetString_() string
- func (*TypedData) ProtoMessage()
- func (m *TypedData) Reset()
- func (m *TypedData) String() string
- func (*TypedData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type TypedData_Bytes
- type TypedData_Double
- type TypedData_Http
- type TypedData_Int
- type TypedData_Json
- type TypedData_Stream
- type TypedData_String_
- type WorkerActionResponse
- func (*WorkerActionResponse) Descriptor() ([]byte, []int)
- func (m *WorkerActionResponse) GetAction() WorkerActionResponse_Action
- func (m *WorkerActionResponse) GetReason() string
- func (*WorkerActionResponse) ProtoMessage()
- func (m *WorkerActionResponse) Reset()
- func (m *WorkerActionResponse) String() string
- type WorkerActionResponse_Action
- type WorkerHeartbeat
- type WorkerInitRequest
- func (*WorkerInitRequest) Descriptor() ([]byte, []int)
- func (m *WorkerInitRequest) GetCapabilities() map[string]string
- func (m *WorkerInitRequest) GetHostVersion() string
- func (m *WorkerInitRequest) GetLogCategories() map[string]RpcLog_Level
- func (*WorkerInitRequest) ProtoMessage()
- func (m *WorkerInitRequest) Reset()
- func (m *WorkerInitRequest) String() string
- type WorkerInitResponse
- func (*WorkerInitResponse) Descriptor() ([]byte, []int)
- func (m *WorkerInitResponse) GetCapabilities() map[string]string
- func (m *WorkerInitResponse) GetResult() *StatusResult
- func (m *WorkerInitResponse) GetWorkerVersion() string
- func (*WorkerInitResponse) ProtoMessage()
- func (m *WorkerInitResponse) Reset()
- func (m *WorkerInitResponse) String() string
- type WorkerStatusRequest
- type WorkerStatusResponse
- type WorkerTerminate
Constants ¶
This section is empty.
Variables ¶
View Source
var BindingInfo_Direction_name = map[int32]string{
0: "in",
1: "out",
2: "inout",
}
View Source
var BindingInfo_Direction_value = map[string]int32{
"in": 0,
"out": 1,
"inout": 2,
}
View Source
var FileChangeEventRequest_Type_name = map[int32]string{
0: "Unknown",
1: "Created",
2: "Deleted",
4: "Changed",
8: "Renamed",
15: "All",
}
View Source
var FileChangeEventRequest_Type_value = map[string]int32{
"Unknown": 0,
"Created": 1,
"Deleted": 2,
"Changed": 4,
"Renamed": 8,
"All": 15,
}
View Source
var RpcLog_Level_name = map[int32]string{
0: "Trace",
1: "Debug",
2: "Information",
3: "Warning",
4: "Error",
5: "Critical",
6: "None",
}
View Source
var RpcLog_Level_value = map[string]int32{
"Trace": 0,
"Debug": 1,
"Information": 2,
"Warning": 3,
"Error": 4,
"Critical": 5,
"None": 6,
}
View Source
var StatusResult_Status_name = map[int32]string{
0: "Failure",
1: "Success",
2: "Cancelled",
}
View Source
var StatusResult_Status_value = map[string]int32{
"Failure": 0,
"Success": 1,
"Cancelled": 2,
}
View Source
var WorkerActionResponse_Action_name = map[int32]string{
0: "Restart",
1: "Reload",
}
View Source
var WorkerActionResponse_Action_value = map[string]int32{
"Restart": 0,
"Reload": 1,
}
Functions ¶
func RegisterFunctionRpcServer ¶
func RegisterFunctionRpcServer(s *grpc.Server, srv FunctionRpcServer)
Types ¶
type BindingInfo ¶
type BindingInfo struct { Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Direction BindingInfo_Direction `protobuf:"varint,3,opt,name=direction,enum=FunctionRpc.BindingInfo_Direction" json:"direction,omitempty"` }
func (*BindingInfo) Descriptor ¶
func (*BindingInfo) Descriptor() ([]byte, []int)
func (*BindingInfo) GetDirection ¶
func (m *BindingInfo) GetDirection() BindingInfo_Direction
func (*BindingInfo) GetType ¶
func (m *BindingInfo) GetType() string
func (*BindingInfo) ProtoMessage ¶
func (*BindingInfo) ProtoMessage()
func (*BindingInfo) Reset ¶
func (m *BindingInfo) Reset()
func (*BindingInfo) String ¶
func (m *BindingInfo) String() string
type BindingInfo_Direction ¶
type BindingInfo_Direction int32
const ( BindingInfo_in BindingInfo_Direction = 0 BindingInfo_out BindingInfo_Direction = 1 BindingInfo_inout BindingInfo_Direction = 2 )
func (BindingInfo_Direction) EnumDescriptor ¶
func (BindingInfo_Direction) EnumDescriptor() ([]byte, []int)
func (BindingInfo_Direction) String ¶
func (x BindingInfo_Direction) String() string
type FileChangeEventRequest ¶
type FileChangeEventRequest struct { Type FileChangeEventRequest_Type `protobuf:"varint,1,opt,name=type,enum=FunctionRpc.FileChangeEventRequest_Type" json:"type,omitempty"` FullPath string `protobuf:"bytes,2,opt,name=full_path,json=fullPath" json:"full_path,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` }
func (*FileChangeEventRequest) Descriptor ¶
func (*FileChangeEventRequest) Descriptor() ([]byte, []int)
func (*FileChangeEventRequest) GetFullPath ¶
func (m *FileChangeEventRequest) GetFullPath() string
func (*FileChangeEventRequest) GetName ¶
func (m *FileChangeEventRequest) GetName() string
func (*FileChangeEventRequest) GetType ¶
func (m *FileChangeEventRequest) GetType() FileChangeEventRequest_Type
func (*FileChangeEventRequest) ProtoMessage ¶
func (*FileChangeEventRequest) ProtoMessage()
func (*FileChangeEventRequest) Reset ¶
func (m *FileChangeEventRequest) Reset()
func (*FileChangeEventRequest) String ¶
func (m *FileChangeEventRequest) String() string
type FileChangeEventRequest_Type ¶
type FileChangeEventRequest_Type int32
https://msdn.microsoft.com/en-us/library/t6xf43e0(v=vs.110).aspx
const ( FileChangeEventRequest_Unknown FileChangeEventRequest_Type = 0 FileChangeEventRequest_Created FileChangeEventRequest_Type = 1 FileChangeEventRequest_Deleted FileChangeEventRequest_Type = 2 FileChangeEventRequest_Changed FileChangeEventRequest_Type = 4 FileChangeEventRequest_Renamed FileChangeEventRequest_Type = 8 FileChangeEventRequest_All FileChangeEventRequest_Type = 15 )
func (FileChangeEventRequest_Type) EnumDescriptor ¶
func (FileChangeEventRequest_Type) EnumDescriptor() ([]byte, []int)
func (FileChangeEventRequest_Type) String ¶
func (x FileChangeEventRequest_Type) String() string
type FunctionLoadRequest ¶
type FunctionLoadRequest struct { // unique function identifier (avoid name collisions, facilitate reload case) FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId" json:"function_id,omitempty"` Metadata *RpcFunctionMetadata `protobuf:"bytes,2,opt,name=metadata" json:"metadata,omitempty"` }
func (*FunctionLoadRequest) Descriptor ¶
func (*FunctionLoadRequest) Descriptor() ([]byte, []int)
func (*FunctionLoadRequest) GetFunctionId ¶
func (m *FunctionLoadRequest) GetFunctionId() string
func (*FunctionLoadRequest) GetMetadata ¶
func (m *FunctionLoadRequest) GetMetadata() *RpcFunctionMetadata
func (*FunctionLoadRequest) ProtoMessage ¶
func (*FunctionLoadRequest) ProtoMessage()
func (*FunctionLoadRequest) Reset ¶
func (m *FunctionLoadRequest) Reset()
func (*FunctionLoadRequest) String ¶
func (m *FunctionLoadRequest) String() string
type FunctionLoadResponse ¶
type FunctionLoadResponse struct { FunctionId string `protobuf:"bytes,1,opt,name=function_id,json=functionId" json:"function_id,omitempty"` Result *StatusResult `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"` }
func (*FunctionLoadResponse) Descriptor ¶
func (*FunctionLoadResponse) Descriptor() ([]byte, []int)
func (*FunctionLoadResponse) GetFunctionId ¶
func (m *FunctionLoadResponse) GetFunctionId() string
func (*FunctionLoadResponse) GetResult ¶
func (m *FunctionLoadResponse) GetResult() *StatusResult
func (*FunctionLoadResponse) ProtoMessage ¶
func (*FunctionLoadResponse) ProtoMessage()
func (*FunctionLoadResponse) Reset ¶
func (m *FunctionLoadResponse) Reset()
func (*FunctionLoadResponse) String ¶
func (m *FunctionLoadResponse) String() string
type FunctionRpcClient ¶
type FunctionRpcClient interface {
EventStream(ctx context.Context, opts ...grpc.CallOption) (FunctionRpc_EventStreamClient, error)
}
func NewFunctionRpcClient ¶
func NewFunctionRpcClient(cc *grpc.ClientConn) FunctionRpcClient
type FunctionRpcServer ¶
type FunctionRpcServer interface {
EventStream(FunctionRpc_EventStreamServer) error
}
type FunctionRpc_EventStreamClient ¶
type FunctionRpc_EventStreamClient interface { Send(*StreamingMessage) error Recv() (*StreamingMessage, error) grpc.ClientStream }
type FunctionRpc_EventStreamServer ¶
type FunctionRpc_EventStreamServer interface { Send(*StreamingMessage) error Recv() (*StreamingMessage, error) grpc.ServerStream }
type InvocationCancel ¶
type InvocationCancel struct { InvocationId string `protobuf:"bytes,2,opt,name=invocation_id,json=invocationId" json:"invocation_id,omitempty"` GracePeriod *google_protobuf.Duration `protobuf:"bytes,1,opt,name=grace_period,json=gracePeriod" json:"grace_period,omitempty"` }
func (*InvocationCancel) Descriptor ¶
func (*InvocationCancel) Descriptor() ([]byte, []int)
func (*InvocationCancel) GetGracePeriod ¶
func (m *InvocationCancel) GetGracePeriod() *google_protobuf.Duration
func (*InvocationCancel) GetInvocationId ¶
func (m *InvocationCancel) GetInvocationId() string
func (*InvocationCancel) ProtoMessage ¶
func (*InvocationCancel) ProtoMessage()
func (*InvocationCancel) Reset ¶
func (m *InvocationCancel) Reset()
func (*InvocationCancel) String ¶
func (m *InvocationCancel) String() string
type InvocationRequest ¶
type InvocationRequest struct { InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId" json:"invocation_id,omitempty"` FunctionId string `protobuf:"bytes,2,opt,name=function_id,json=functionId" json:"function_id,omitempty"` InputData []*ParameterBinding `protobuf:"bytes,3,rep,name=input_data,json=inputData" json:"input_data,omitempty"` TriggerMetadata map[string]*TypedData `` /* 173-byte string literal not displayed */ }
func (*InvocationRequest) Descriptor ¶
func (*InvocationRequest) Descriptor() ([]byte, []int)
func (*InvocationRequest) GetFunctionId ¶
func (m *InvocationRequest) GetFunctionId() string
func (*InvocationRequest) GetInputData ¶
func (m *InvocationRequest) GetInputData() []*ParameterBinding
func (*InvocationRequest) GetInvocationId ¶
func (m *InvocationRequest) GetInvocationId() string
func (*InvocationRequest) GetTriggerMetadata ¶
func (m *InvocationRequest) GetTriggerMetadata() map[string]*TypedData
func (*InvocationRequest) ProtoMessage ¶
func (*InvocationRequest) ProtoMessage()
func (*InvocationRequest) Reset ¶
func (m *InvocationRequest) Reset()
func (*InvocationRequest) String ¶
func (m *InvocationRequest) String() string
type InvocationResponse ¶
type InvocationResponse struct { InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId" json:"invocation_id,omitempty"` OutputData []*ParameterBinding `protobuf:"bytes,2,rep,name=output_data,json=outputData" json:"output_data,omitempty"` ReturnValue *TypedData `protobuf:"bytes,4,opt,name=return_value,json=returnValue" json:"return_value,omitempty"` Result *StatusResult `protobuf:"bytes,3,opt,name=result" json:"result,omitempty"` }
func (*InvocationResponse) Descriptor ¶
func (*InvocationResponse) Descriptor() ([]byte, []int)
func (*InvocationResponse) GetInvocationId ¶
func (m *InvocationResponse) GetInvocationId() string
func (*InvocationResponse) GetOutputData ¶
func (m *InvocationResponse) GetOutputData() []*ParameterBinding
func (*InvocationResponse) GetResult ¶
func (m *InvocationResponse) GetResult() *StatusResult
func (*InvocationResponse) GetReturnValue ¶
func (m *InvocationResponse) GetReturnValue() *TypedData
func (*InvocationResponse) ProtoMessage ¶
func (*InvocationResponse) ProtoMessage()
func (*InvocationResponse) Reset ¶
func (m *InvocationResponse) Reset()
func (*InvocationResponse) String ¶
func (m *InvocationResponse) String() string
type ParameterBinding ¶
type ParameterBinding struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Data *TypedData `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` }
func (*ParameterBinding) Descriptor ¶
func (*ParameterBinding) Descriptor() ([]byte, []int)
func (*ParameterBinding) GetData ¶
func (m *ParameterBinding) GetData() *TypedData
func (*ParameterBinding) GetName ¶
func (m *ParameterBinding) GetName() string
func (*ParameterBinding) ProtoMessage ¶
func (*ParameterBinding) ProtoMessage()
func (*ParameterBinding) Reset ¶
func (m *ParameterBinding) Reset()
func (*ParameterBinding) String ¶
func (m *ParameterBinding) String() string
type RpcException ¶
type RpcException struct { Source string `protobuf:"bytes,3,opt,name=source" json:"source,omitempty"` StackTrace string `protobuf:"bytes,1,opt,name=stack_trace,json=stackTrace" json:"stack_trace,omitempty"` Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` }
func (*RpcException) Descriptor ¶
func (*RpcException) Descriptor() ([]byte, []int)
func (*RpcException) GetMessage ¶
func (m *RpcException) GetMessage() string
func (*RpcException) GetSource ¶
func (m *RpcException) GetSource() string
func (*RpcException) GetStackTrace ¶
func (m *RpcException) GetStackTrace() string
func (*RpcException) ProtoMessage ¶
func (*RpcException) ProtoMessage()
func (*RpcException) Reset ¶
func (m *RpcException) Reset()
func (*RpcException) String ¶
func (m *RpcException) String() string
type RpcFunctionMetadata ¶
type RpcFunctionMetadata struct { // TODO: do we want the host's name - the language worker might do a better job of assignment than the host Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"` Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"` ScriptFile string `protobuf:"bytes,2,opt,name=script_file,json=scriptFile" json:"script_file,omitempty"` EntryPoint string `protobuf:"bytes,3,opt,name=entry_point,json=entryPoint" json:"entry_point,omitempty"` Bindings map[string]*BindingInfo `` /* 136-byte string literal not displayed */ }
func (*RpcFunctionMetadata) Descriptor ¶
func (*RpcFunctionMetadata) Descriptor() ([]byte, []int)
func (*RpcFunctionMetadata) GetBindings ¶
func (m *RpcFunctionMetadata) GetBindings() map[string]*BindingInfo
func (*RpcFunctionMetadata) GetDirectory ¶
func (m *RpcFunctionMetadata) GetDirectory() string
func (*RpcFunctionMetadata) GetEntryPoint ¶
func (m *RpcFunctionMetadata) GetEntryPoint() string
func (*RpcFunctionMetadata) GetName ¶
func (m *RpcFunctionMetadata) GetName() string
func (*RpcFunctionMetadata) GetScriptFile ¶
func (m *RpcFunctionMetadata) GetScriptFile() string
func (*RpcFunctionMetadata) ProtoMessage ¶
func (*RpcFunctionMetadata) ProtoMessage()
func (*RpcFunctionMetadata) Reset ¶
func (m *RpcFunctionMetadata) Reset()
func (*RpcFunctionMetadata) String ¶
func (m *RpcFunctionMetadata) String() string
type RpcHttp ¶
type RpcHttp struct { Method string `protobuf:"bytes,1,opt,name=method" json:"method,omitempty"` Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` Headers map[string]string `` /* 134-byte string literal not displayed */ Body *TypedData `protobuf:"bytes,4,opt,name=body" json:"body,omitempty"` Params map[string]string `` /* 133-byte string literal not displayed */ StatusCode string `protobuf:"bytes,12,opt,name=status_code,json=statusCode" json:"status_code,omitempty"` Query map[string]string `` /* 131-byte string literal not displayed */ IsRaw bool `protobuf:"varint,16,opt,name=is_raw,json=isRaw" json:"is_raw,omitempty"` }
TODO - solidify this
func (*RpcHttp) Descriptor ¶
func (*RpcHttp) GetHeaders ¶
func (*RpcHttp) GetStatusCode ¶
func (*RpcHttp) ProtoMessage ¶
func (*RpcHttp) ProtoMessage()
type RpcLog ¶
type RpcLog struct { InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId" json:"invocation_id,omitempty"` Category string `protobuf:"bytes,2,opt,name=category" json:"category,omitempty"` Level RpcLog_Level `protobuf:"varint,3,opt,name=level,enum=FunctionRpc.RpcLog_Level" json:"level,omitempty"` Message string `protobuf:"bytes,4,opt,name=message" json:"message,omitempty"` EventId string `protobuf:"bytes,5,opt,name=event_id,json=eventId" json:"event_id,omitempty"` Exception *RpcException `protobuf:"bytes,6,opt,name=exception" json:"exception,omitempty"` // json serialized property bag, or could use a type scheme like map<string, TypedData> Properties string `protobuf:"bytes,7,opt,name=properties" json:"properties,omitempty"` }
func (*RpcLog) Descriptor ¶
func (*RpcLog) GetCategory ¶
func (*RpcLog) GetEventId ¶
func (*RpcLog) GetException ¶
func (m *RpcLog) GetException() *RpcException
func (*RpcLog) GetInvocationId ¶
func (*RpcLog) GetLevel ¶
func (m *RpcLog) GetLevel() RpcLog_Level
func (*RpcLog) GetMessage ¶
func (*RpcLog) GetProperties ¶
func (*RpcLog) ProtoMessage ¶
func (*RpcLog) ProtoMessage()
type RpcLog_Level ¶
type RpcLog_Level int32
Matching ILogger semantics https://github.com/aspnet/Logging/blob/9506ccc3f3491488fe88010ef8b9eb64594abf95/src/Microsoft.Extensions.Logging/Logger.cs
const ( RpcLog_Trace RpcLog_Level = 0 RpcLog_Debug RpcLog_Level = 1 RpcLog_Information RpcLog_Level = 2 RpcLog_Warning RpcLog_Level = 3 RpcLog_Error RpcLog_Level = 4 RpcLog_Critical RpcLog_Level = 5 RpcLog_None RpcLog_Level = 6 )
func (RpcLog_Level) EnumDescriptor ¶
func (RpcLog_Level) EnumDescriptor() ([]byte, []int)
func (RpcLog_Level) String ¶
func (x RpcLog_Level) String() string
type StartStream ¶
type StartStream struct {
WorkerId string `protobuf:"bytes,2,opt,name=worker_id,json=workerId" json:"worker_id,omitempty"`
}
func (*StartStream) Descriptor ¶
func (*StartStream) Descriptor() ([]byte, []int)
func (*StartStream) GetWorkerId ¶
func (m *StartStream) GetWorkerId() string
func (*StartStream) ProtoMessage ¶
func (*StartStream) ProtoMessage()
func (*StartStream) Reset ¶
func (m *StartStream) Reset()
func (*StartStream) String ¶
func (m *StartStream) String() string
type StatusResult ¶
type StatusResult struct { Status StatusResult_Status `protobuf:"varint,4,opt,name=status,enum=FunctionRpc.StatusResult_Status" json:"status,omitempty"` Result string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` Exception *RpcException `protobuf:"bytes,2,opt,name=exception" json:"exception,omitempty"` // Captured logs or relevant details can use the logs property Logs []*RpcLog `protobuf:"bytes,3,rep,name=logs" json:"logs,omitempty"` }
func (*StatusResult) Descriptor ¶
func (*StatusResult) Descriptor() ([]byte, []int)
func (*StatusResult) GetException ¶
func (m *StatusResult) GetException() *RpcException
func (*StatusResult) GetLogs ¶
func (m *StatusResult) GetLogs() []*RpcLog
func (*StatusResult) GetResult ¶
func (m *StatusResult) GetResult() string
func (*StatusResult) GetStatus ¶
func (m *StatusResult) GetStatus() StatusResult_Status
func (*StatusResult) ProtoMessage ¶
func (*StatusResult) ProtoMessage()
func (*StatusResult) Reset ¶
func (m *StatusResult) Reset()
func (*StatusResult) String ¶
func (m *StatusResult) String() string
type StatusResult_Status ¶
type StatusResult_Status int32
const ( StatusResult_Failure StatusResult_Status = 0 StatusResult_Success StatusResult_Status = 1 StatusResult_Cancelled StatusResult_Status = 2 )
func (StatusResult_Status) EnumDescriptor ¶
func (StatusResult_Status) EnumDescriptor() ([]byte, []int)
func (StatusResult_Status) String ¶
func (x StatusResult_Status) String() string
type StreamingMessage ¶
type StreamingMessage struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId" json:"request_id,omitempty"` // Types that are valid to be assigned to Content: // *StreamingMessage_StartStream // *StreamingMessage_WorkerInitRequest // *StreamingMessage_WorkerInitResponse // *StreamingMessage_WorkerHeartbeat // *StreamingMessage_WorkerTerminate // *StreamingMessage_WorkerStatusRequest // *StreamingMessage_WorkerStatusResponse // *StreamingMessage_FileChangeEventRequest // *StreamingMessage_WorkerActionResponse // *StreamingMessage_FunctionLoadRequest // *StreamingMessage_FunctionLoadResponse // *StreamingMessage_InvocationRequest // *StreamingMessage_InvocationResponse // *StreamingMessage_InvocationCancel // *StreamingMessage_RpcLog Content isStreamingMessage_Content `protobuf_oneof:"content"` }
func (*StreamingMessage) Descriptor ¶
func (*StreamingMessage) Descriptor() ([]byte, []int)
func (*StreamingMessage) GetContent ¶
func (m *StreamingMessage) GetContent() isStreamingMessage_Content
func (*StreamingMessage) GetFileChangeEventRequest ¶
func (m *StreamingMessage) GetFileChangeEventRequest() *FileChangeEventRequest
func (*StreamingMessage) GetFunctionLoadRequest ¶
func (m *StreamingMessage) GetFunctionLoadRequest() *FunctionLoadRequest
func (*StreamingMessage) GetFunctionLoadResponse ¶
func (m *StreamingMessage) GetFunctionLoadResponse() *FunctionLoadResponse
func (*StreamingMessage) GetInvocationCancel ¶
func (m *StreamingMessage) GetInvocationCancel() *InvocationCancel
func (*StreamingMessage) GetInvocationRequest ¶
func (m *StreamingMessage) GetInvocationRequest() *InvocationRequest
func (*StreamingMessage) GetInvocationResponse ¶
func (m *StreamingMessage) GetInvocationResponse() *InvocationResponse
func (*StreamingMessage) GetRequestId ¶
func (m *StreamingMessage) GetRequestId() string
func (*StreamingMessage) GetRpcLog ¶
func (m *StreamingMessage) GetRpcLog() *RpcLog
func (*StreamingMessage) GetStartStream ¶
func (m *StreamingMessage) GetStartStream() *StartStream
func (*StreamingMessage) GetWorkerActionResponse ¶
func (m *StreamingMessage) GetWorkerActionResponse() *WorkerActionResponse
func (*StreamingMessage) GetWorkerHeartbeat ¶
func (m *StreamingMessage) GetWorkerHeartbeat() *WorkerHeartbeat
func (*StreamingMessage) GetWorkerInitRequest ¶
func (m *StreamingMessage) GetWorkerInitRequest() *WorkerInitRequest
func (*StreamingMessage) GetWorkerInitResponse ¶
func (m *StreamingMessage) GetWorkerInitResponse() *WorkerInitResponse
func (*StreamingMessage) GetWorkerStatusRequest ¶
func (m *StreamingMessage) GetWorkerStatusRequest() *WorkerStatusRequest
func (*StreamingMessage) GetWorkerStatusResponse ¶
func (m *StreamingMessage) GetWorkerStatusResponse() *WorkerStatusResponse
func (*StreamingMessage) GetWorkerTerminate ¶
func (m *StreamingMessage) GetWorkerTerminate() *WorkerTerminate
func (*StreamingMessage) ProtoMessage ¶
func (*StreamingMessage) ProtoMessage()
func (*StreamingMessage) Reset ¶
func (m *StreamingMessage) Reset()
func (*StreamingMessage) String ¶
func (m *StreamingMessage) String() string
func (*StreamingMessage) XXX_OneofFuncs ¶
func (*StreamingMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type StreamingMessage_FileChangeEventRequest ¶
type StreamingMessage_FileChangeEventRequest struct {
FileChangeEventRequest *FileChangeEventRequest `protobuf:"bytes,6,opt,name=file_change_event_request,json=fileChangeEventRequest,oneof"`
}
type StreamingMessage_FunctionLoadRequest ¶
type StreamingMessage_FunctionLoadRequest struct {
FunctionLoadRequest *FunctionLoadRequest `protobuf:"bytes,8,opt,name=function_load_request,json=functionLoadRequest,oneof"`
}
type StreamingMessage_FunctionLoadResponse ¶
type StreamingMessage_FunctionLoadResponse struct {
FunctionLoadResponse *FunctionLoadResponse `protobuf:"bytes,9,opt,name=function_load_response,json=functionLoadResponse,oneof"`
}
type StreamingMessage_InvocationCancel ¶
type StreamingMessage_InvocationCancel struct {
InvocationCancel *InvocationCancel `protobuf:"bytes,21,opt,name=invocation_cancel,json=invocationCancel,oneof"`
}
type StreamingMessage_InvocationRequest ¶
type StreamingMessage_InvocationRequest struct {
InvocationRequest *InvocationRequest `protobuf:"bytes,4,opt,name=invocation_request,json=invocationRequest,oneof"`
}
type StreamingMessage_InvocationResponse ¶
type StreamingMessage_InvocationResponse struct {
InvocationResponse *InvocationResponse `protobuf:"bytes,5,opt,name=invocation_response,json=invocationResponse,oneof"`
}
type StreamingMessage_RpcLog ¶
type StreamingMessage_RpcLog struct {
RpcLog *RpcLog `protobuf:"bytes,2,opt,name=rpc_log,json=rpcLog,oneof"`
}
type StreamingMessage_StartStream ¶
type StreamingMessage_StartStream struct {
StartStream *StartStream `protobuf:"bytes,20,opt,name=start_stream,json=startStream,oneof"`
}
type StreamingMessage_WorkerActionResponse ¶
type StreamingMessage_WorkerActionResponse struct {
WorkerActionResponse *WorkerActionResponse `protobuf:"bytes,7,opt,name=worker_action_response,json=workerActionResponse,oneof"`
}
type StreamingMessage_WorkerHeartbeat ¶
type StreamingMessage_WorkerHeartbeat struct {
WorkerHeartbeat *WorkerHeartbeat `protobuf:"bytes,15,opt,name=worker_heartbeat,json=workerHeartbeat,oneof"`
}
type StreamingMessage_WorkerInitRequest ¶
type StreamingMessage_WorkerInitRequest struct {
WorkerInitRequest *WorkerInitRequest `protobuf:"bytes,17,opt,name=worker_init_request,json=workerInitRequest,oneof"`
}
type StreamingMessage_WorkerInitResponse ¶
type StreamingMessage_WorkerInitResponse struct {
WorkerInitResponse *WorkerInitResponse `protobuf:"bytes,16,opt,name=worker_init_response,json=workerInitResponse,oneof"`
}
type StreamingMessage_WorkerStatusRequest ¶
type StreamingMessage_WorkerStatusRequest struct {
WorkerStatusRequest *WorkerStatusRequest `protobuf:"bytes,12,opt,name=worker_status_request,json=workerStatusRequest,oneof"`
}
type StreamingMessage_WorkerStatusResponse ¶
type StreamingMessage_WorkerStatusResponse struct {
WorkerStatusResponse *WorkerStatusResponse `protobuf:"bytes,13,opt,name=worker_status_response,json=workerStatusResponse,oneof"`
}
type StreamingMessage_WorkerTerminate ¶
type StreamingMessage_WorkerTerminate struct {
WorkerTerminate *WorkerTerminate `protobuf:"bytes,14,opt,name=worker_terminate,json=workerTerminate,oneof"`
}
type TypedData ¶
type TypedData struct { // Types that are valid to be assigned to Data: // *TypedData_String_ // *TypedData_Json // *TypedData_Bytes // *TypedData_Stream // *TypedData_Http // *TypedData_Int // *TypedData_Double Data isTypedData_Data `protobuf_oneof:"data"` }
func (*TypedData) Descriptor ¶
func (*TypedData) GetString_ ¶
func (*TypedData) ProtoMessage ¶
func (*TypedData) ProtoMessage()
type TypedData_Bytes ¶
type TypedData_Bytes struct {
Bytes []byte `protobuf:"bytes,3,opt,name=bytes,proto3,oneof"`
}
type TypedData_Double ¶
type TypedData_Double struct {
Double float64 `protobuf:"fixed64,7,opt,name=double,oneof"`
}
type TypedData_Http ¶
type TypedData_Http struct {
Http *RpcHttp `protobuf:"bytes,5,opt,name=http,oneof"`
}
type TypedData_Int ¶
type TypedData_Int struct {
Int int64 `protobuf:"zigzag64,6,opt,name=int,oneof"`
}
type TypedData_Json ¶
type TypedData_Json struct {
Json string `protobuf:"bytes,2,opt,name=json,oneof"`
}
type TypedData_Stream ¶
type TypedData_Stream struct {
Stream []byte `protobuf:"bytes,4,opt,name=stream,proto3,oneof"`
}
type TypedData_String_ ¶
type TypedData_String_ struct {
String_ string `protobuf:"bytes,1,opt,name=string,oneof"`
}
type WorkerActionResponse ¶
type WorkerActionResponse struct { Action WorkerActionResponse_Action `protobuf:"varint,1,opt,name=action,enum=FunctionRpc.WorkerActionResponse_Action" json:"action,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"` }
func (*WorkerActionResponse) Descriptor ¶
func (*WorkerActionResponse) Descriptor() ([]byte, []int)
func (*WorkerActionResponse) GetAction ¶
func (m *WorkerActionResponse) GetAction() WorkerActionResponse_Action
func (*WorkerActionResponse) GetReason ¶
func (m *WorkerActionResponse) GetReason() string
func (*WorkerActionResponse) ProtoMessage ¶
func (*WorkerActionResponse) ProtoMessage()
func (*WorkerActionResponse) Reset ¶
func (m *WorkerActionResponse) Reset()
func (*WorkerActionResponse) String ¶
func (m *WorkerActionResponse) String() string
type WorkerActionResponse_Action ¶
type WorkerActionResponse_Action int32
const ( WorkerActionResponse_Restart WorkerActionResponse_Action = 0 WorkerActionResponse_Reload WorkerActionResponse_Action = 1 )
func (WorkerActionResponse_Action) EnumDescriptor ¶
func (WorkerActionResponse_Action) EnumDescriptor() ([]byte, []int)
func (WorkerActionResponse_Action) String ¶
func (x WorkerActionResponse_Action) String() string
type WorkerHeartbeat ¶
type WorkerHeartbeat struct { }
TODO: investigate grpc heartbeat - don't limit to grpc implemention Message is empty by design - Will add more fields in future if needed
func (*WorkerHeartbeat) Descriptor ¶
func (*WorkerHeartbeat) Descriptor() ([]byte, []int)
func (*WorkerHeartbeat) ProtoMessage ¶
func (*WorkerHeartbeat) ProtoMessage()
func (*WorkerHeartbeat) Reset ¶
func (m *WorkerHeartbeat) Reset()
func (*WorkerHeartbeat) String ¶
func (m *WorkerHeartbeat) String() string
type WorkerInitRequest ¶
type WorkerInitRequest struct { HostVersion string `protobuf:"bytes,1,opt,name=host_version,json=hostVersion" json:"host_version,omitempty"` // A map of host supported features/capabilities Capabilities map[string]string `` /* 144-byte string literal not displayed */ // inform worker of supported categories and their levels // i.e. Worker = Verbose, Function.MyFunc = None LogCategories map[string]RpcLog_Level `` /* 198-byte string literal not displayed */ }
func (*WorkerInitRequest) Descriptor ¶
func (*WorkerInitRequest) Descriptor() ([]byte, []int)
func (*WorkerInitRequest) GetCapabilities ¶
func (m *WorkerInitRequest) GetCapabilities() map[string]string
func (*WorkerInitRequest) GetHostVersion ¶
func (m *WorkerInitRequest) GetHostVersion() string
func (*WorkerInitRequest) GetLogCategories ¶
func (m *WorkerInitRequest) GetLogCategories() map[string]RpcLog_Level
func (*WorkerInitRequest) ProtoMessage ¶
func (*WorkerInitRequest) ProtoMessage()
func (*WorkerInitRequest) Reset ¶
func (m *WorkerInitRequest) Reset()
func (*WorkerInitRequest) String ¶
func (m *WorkerInitRequest) String() string
type WorkerInitResponse ¶
type WorkerInitResponse struct { WorkerVersion string `protobuf:"bytes,1,opt,name=worker_version,json=workerVersion" json:"worker_version,omitempty"` // A map of worker supported features/capabilities Capabilities map[string]string `` /* 144-byte string literal not displayed */ Result *StatusResult `protobuf:"bytes,3,opt,name=result" json:"result,omitempty"` }
func (*WorkerInitResponse) Descriptor ¶
func (*WorkerInitResponse) Descriptor() ([]byte, []int)
func (*WorkerInitResponse) GetCapabilities ¶
func (m *WorkerInitResponse) GetCapabilities() map[string]string
func (*WorkerInitResponse) GetResult ¶
func (m *WorkerInitResponse) GetResult() *StatusResult
func (*WorkerInitResponse) GetWorkerVersion ¶
func (m *WorkerInitResponse) GetWorkerVersion() string
func (*WorkerInitResponse) ProtoMessage ¶
func (*WorkerInitResponse) ProtoMessage()
func (*WorkerInitResponse) Reset ¶
func (m *WorkerInitResponse) Reset()
func (*WorkerInitResponse) String ¶
func (m *WorkerInitResponse) String() string
type WorkerStatusRequest ¶
type WorkerStatusRequest struct { }
func (*WorkerStatusRequest) Descriptor ¶
func (*WorkerStatusRequest) Descriptor() ([]byte, []int)
func (*WorkerStatusRequest) ProtoMessage ¶
func (*WorkerStatusRequest) ProtoMessage()
func (*WorkerStatusRequest) Reset ¶
func (m *WorkerStatusRequest) Reset()
func (*WorkerStatusRequest) String ¶
func (m *WorkerStatusRequest) String() string
type WorkerStatusResponse ¶
type WorkerStatusResponse struct { }
func (*WorkerStatusResponse) Descriptor ¶
func (*WorkerStatusResponse) Descriptor() ([]byte, []int)
func (*WorkerStatusResponse) ProtoMessage ¶
func (*WorkerStatusResponse) ProtoMessage()
func (*WorkerStatusResponse) Reset ¶
func (m *WorkerStatusResponse) Reset()
func (*WorkerStatusResponse) String ¶
func (m *WorkerStatusResponse) String() string
type WorkerTerminate ¶
type WorkerTerminate struct {
GracePeriod *google_protobuf.Duration `protobuf:"bytes,1,opt,name=grace_period,json=gracePeriod" json:"grace_period,omitempty"`
}
Warning before killing the process after grace_period Worker self terminates ..no response on this
func (*WorkerTerminate) Descriptor ¶
func (*WorkerTerminate) Descriptor() ([]byte, []int)
func (*WorkerTerminate) GetGracePeriod ¶
func (m *WorkerTerminate) GetGracePeriod() *google_protobuf.Duration
func (*WorkerTerminate) ProtoMessage ¶
func (*WorkerTerminate) ProtoMessage()
func (*WorkerTerminate) Reset ¶
func (m *WorkerTerminate) Reset()
func (*WorkerTerminate) String ¶
func (m *WorkerTerminate) String() string
Click to show internal directories.
Click to hide internal directories.