Documentation ¶
Index ¶
- Variables
- type CleanupRequest
- type GetResultRequest
- type GetResultResponse
- func (*GetResultResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResultResponse) GetExpiryTime() string
- func (x *GetResultResponse) GetFailure() *GetResultResponse_InvocationFailure
- func (x *GetResultResponse) GetNone() *emptypb.Empty
- func (m *GetResultResponse) GetResponse() isGetResultResponse_Response
- func (x *GetResultResponse) GetSuccess() []byte
- func (*GetResultResponse) ProtoMessage()
- func (x *GetResultResponse) ProtoReflect() protoreflect.Message
- func (x *GetResultResponse) Reset()
- func (x *GetResultResponse) String() string
- type GetResultResponse_Failure
- type GetResultResponse_InvocationFailure
- func (*GetResultResponse_InvocationFailure) Descriptor() ([]byte, []int)deprecated
- func (x *GetResultResponse_InvocationFailure) GetCode() uint32
- func (x *GetResultResponse_InvocationFailure) GetMessage() string
- func (*GetResultResponse_InvocationFailure) ProtoMessage()
- func (x *GetResultResponse_InvocationFailure) ProtoReflect() protoreflect.Message
- func (x *GetResultResponse_InvocationFailure) Reset()
- func (x *GetResultResponse_InvocationFailure) String() string
- type GetResultResponse_None
- type GetResultResponse_Success
- type RecvRequest
- func (*RecvRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RecvRequest) GetOperationId() string
- func (x *RecvRequest) GetStreamId() string
- func (*RecvRequest) ProtoMessage()
- func (x *RecvRequest) ProtoReflect() protoreflect.Message
- func (x *RecvRequest) Reset()
- func (x *RecvRequest) String() string
- type RecvResponse
- func (*RecvResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RecvResponse) GetInvalidStream() *emptypb.Empty
- func (x *RecvResponse) GetInvocationCompleted() *emptypb.Empty
- func (x *RecvResponse) GetMessages() []byte
- func (m *RecvResponse) GetResponse() isRecvResponse_Response
- func (*RecvResponse) ProtoMessage()
- func (x *RecvResponse) ProtoReflect() protoreflect.Message
- func (x *RecvResponse) Reset()
- func (x *RecvResponse) String() string
- type RecvResponse_InvalidStream
- type RecvResponse_InvocationCompleted
- type RecvResponse_Messages
- type SendRequest
- func (*SendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendRequest) GetMessages() []byte
- func (x *SendRequest) GetOperationId() string
- func (x *SendRequest) GetStreamId() string
- func (*SendRequest) ProtoMessage()
- func (x *SendRequest) ProtoReflect() protoreflect.Message
- func (x *SendRequest) Reset()
- func (x *SendRequest) String() string
- type SendResponse
- func (*SendResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendResponse) GetInvalidStream() *emptypb.Empty
- func (x *SendResponse) GetInvocationCompleted() *emptypb.Empty
- func (x *SendResponse) GetOk() *emptypb.Empty
- func (m *SendResponse) GetResponse() isSendResponse_Response
- func (*SendResponse) ProtoMessage()
- func (x *SendResponse) ProtoReflect() protoreflect.Message
- func (x *SendResponse) Reset()
- func (x *SendResponse) String() string
- type SendResponse_InvalidStream
- type SendResponse_InvocationCompleted
- type SendResponse_Ok
- type StartRequest
- func (*StartRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StartRequest) GetArgument() []byte
- func (x *StartRequest) GetOperationId() string
- func (x *StartRequest) GetRetentionPeriodSec() uint32
- func (x *StartRequest) GetStreamId() string
- func (*StartRequest) ProtoMessage()
- func (x *StartRequest) ProtoReflect() protoreflect.Message
- func (x *StartRequest) Reset()
- func (x *StartRequest) String() string
- type StartResponse
- func (*StartResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StartResponse) GetCompleted() *GetResultResponse
- func (x *StartResponse) GetExecuting() []byte
- func (m *StartResponse) GetInvocationStatus() isStartResponse_InvocationStatus
- func (*StartResponse) ProtoMessage()
- func (x *StartResponse) ProtoReflect() protoreflect.Message
- func (x *StartResponse) Reset()
- func (x *StartResponse) String() string
- type StartResponse_Completed
- type StartResponse_Executing
Constants ¶
This section is empty.
Variables ¶
var File_proto_services_services_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CleanupRequest ¶
type CleanupRequest struct { // User provided operation id, this is used as idempotency key. OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"` // contains filtered or unexported fields }
func (*CleanupRequest) Descriptor
deprecated
func (*CleanupRequest) Descriptor() ([]byte, []int)
Deprecated: Use CleanupRequest.ProtoReflect.Descriptor instead.
func (*CleanupRequest) GetOperationId ¶
func (x *CleanupRequest) GetOperationId() string
func (*CleanupRequest) ProtoMessage ¶
func (*CleanupRequest) ProtoMessage()
func (*CleanupRequest) ProtoReflect ¶
func (x *CleanupRequest) ProtoReflect() protoreflect.Message
func (*CleanupRequest) Reset ¶
func (x *CleanupRequest) Reset()
func (*CleanupRequest) String ¶
func (x *CleanupRequest) String() string
type GetResultRequest ¶
type GetResultRequest struct { // User provided operation id, this is used as idempotency key. OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"` // contains filtered or unexported fields }
func (*GetResultRequest) Descriptor
deprecated
func (*GetResultRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetResultRequest.ProtoReflect.Descriptor instead.
func (*GetResultRequest) GetOperationId ¶
func (x *GetResultRequest) GetOperationId() string
func (*GetResultRequest) ProtoMessage ¶
func (*GetResultRequest) ProtoMessage()
func (*GetResultRequest) ProtoReflect ¶
func (x *GetResultRequest) ProtoReflect() protoreflect.Message
func (*GetResultRequest) Reset ¶
func (x *GetResultRequest) Reset()
func (*GetResultRequest) String ¶
func (x *GetResultRequest) String() string
type GetResultResponse ¶
type GetResultResponse struct { // Types that are assignable to Response: // // *GetResultResponse_None // *GetResultResponse_Success // *GetResultResponse_Failure Response isGetResultResponse_Response `protobuf_oneof:"response"` // Timestamp of the response expiry time in RFC3339. // Empty if response = none ExpiryTime string `protobuf:"bytes,15,opt,name=expiry_time,json=expiryTime,proto3" json:"expiry_time,omitempty"` // contains filtered or unexported fields }
func (*GetResultResponse) Descriptor
deprecated
func (*GetResultResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResultResponse.ProtoReflect.Descriptor instead.
func (*GetResultResponse) GetExpiryTime ¶
func (x *GetResultResponse) GetExpiryTime() string
func (*GetResultResponse) GetFailure ¶
func (x *GetResultResponse) GetFailure() *GetResultResponse_InvocationFailure
func (*GetResultResponse) GetNone ¶
func (x *GetResultResponse) GetNone() *emptypb.Empty
func (*GetResultResponse) GetResponse ¶
func (m *GetResultResponse) GetResponse() isGetResultResponse_Response
func (*GetResultResponse) GetSuccess ¶
func (x *GetResultResponse) GetSuccess() []byte
func (*GetResultResponse) ProtoMessage ¶
func (*GetResultResponse) ProtoMessage()
func (*GetResultResponse) ProtoReflect ¶
func (x *GetResultResponse) ProtoReflect() protoreflect.Message
func (*GetResultResponse) Reset ¶
func (x *GetResultResponse) Reset()
func (*GetResultResponse) String ¶
func (x *GetResultResponse) String() string
type GetResultResponse_Failure ¶
type GetResultResponse_Failure struct {
Failure *GetResultResponse_InvocationFailure `protobuf:"bytes,3,opt,name=failure,proto3,oneof"`
}
type GetResultResponse_InvocationFailure ¶
type GetResultResponse_InvocationFailure struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*GetResultResponse_InvocationFailure) Descriptor
deprecated
func (*GetResultResponse_InvocationFailure) Descriptor() ([]byte, []int)
Deprecated: Use GetResultResponse_InvocationFailure.ProtoReflect.Descriptor instead.
func (*GetResultResponse_InvocationFailure) GetCode ¶
func (x *GetResultResponse_InvocationFailure) GetCode() uint32
func (*GetResultResponse_InvocationFailure) GetMessage ¶
func (x *GetResultResponse_InvocationFailure) GetMessage() string
func (*GetResultResponse_InvocationFailure) ProtoMessage ¶
func (*GetResultResponse_InvocationFailure) ProtoMessage()
func (*GetResultResponse_InvocationFailure) ProtoReflect ¶
func (x *GetResultResponse_InvocationFailure) ProtoReflect() protoreflect.Message
func (*GetResultResponse_InvocationFailure) Reset ¶
func (x *GetResultResponse_InvocationFailure) Reset()
func (*GetResultResponse_InvocationFailure) String ¶
func (x *GetResultResponse_InvocationFailure) String() string
type GetResultResponse_None ¶
type GetResultResponse_Success ¶
type GetResultResponse_Success struct {
Success []byte `protobuf:"bytes,2,opt,name=success,proto3,oneof"`
}
type RecvRequest ¶
type RecvRequest struct { // User provided operation id, this is used as idempotency key. OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"` // Stream id to uniquely identify a open stream between client and Restate. // There can be at most one open stream at the same time. StreamId string `protobuf:"bytes,2,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` // contains filtered or unexported fields }
func (*RecvRequest) Descriptor
deprecated
func (*RecvRequest) Descriptor() ([]byte, []int)
Deprecated: Use RecvRequest.ProtoReflect.Descriptor instead.
func (*RecvRequest) GetOperationId ¶
func (x *RecvRequest) GetOperationId() string
func (*RecvRequest) GetStreamId ¶
func (x *RecvRequest) GetStreamId() string
func (*RecvRequest) ProtoMessage ¶
func (*RecvRequest) ProtoMessage()
func (*RecvRequest) ProtoReflect ¶
func (x *RecvRequest) ProtoReflect() protoreflect.Message
func (*RecvRequest) Reset ¶
func (x *RecvRequest) Reset()
func (*RecvRequest) String ¶
func (x *RecvRequest) String() string
type RecvResponse ¶
type RecvResponse struct { // Types that are assignable to Response: // // *RecvResponse_Messages // *RecvResponse_InvalidStream // *RecvResponse_InvocationCompleted Response isRecvResponse_Response `protobuf_oneof:"response"` // contains filtered or unexported fields }
func (*RecvResponse) Descriptor
deprecated
func (*RecvResponse) Descriptor() ([]byte, []int)
Deprecated: Use RecvResponse.ProtoReflect.Descriptor instead.
func (*RecvResponse) GetInvalidStream ¶
func (x *RecvResponse) GetInvalidStream() *emptypb.Empty
func (*RecvResponse) GetInvocationCompleted ¶
func (x *RecvResponse) GetInvocationCompleted() *emptypb.Empty
func (*RecvResponse) GetMessages ¶
func (x *RecvResponse) GetMessages() []byte
func (*RecvResponse) GetResponse ¶
func (m *RecvResponse) GetResponse() isRecvResponse_Response
func (*RecvResponse) ProtoMessage ¶
func (*RecvResponse) ProtoMessage()
func (*RecvResponse) ProtoReflect ¶
func (x *RecvResponse) ProtoReflect() protoreflect.Message
func (*RecvResponse) Reset ¶
func (x *RecvResponse) Reset()
func (*RecvResponse) String ¶
func (x *RecvResponse) String() string
type RecvResponse_InvalidStream ¶
type RecvResponse_InvalidStream struct { // This means the provided stream_id is invalid, and it should not be // reused, nor the client should create a new stream using Start(). The // client can instead read the invocation result using GetResult(). InvalidStream *emptypb.Empty `protobuf:"bytes,2,opt,name=invalid_stream,json=invalidStream,proto3,oneof"` }
type RecvResponse_Messages ¶
type RecvResponse_Messages struct { // Contains the concatenated messages of the stream, encoded using the same // framing used by service-protocol Messages []byte `protobuf:"bytes,1,opt,name=messages,proto3,oneof"` }
type SendRequest ¶
type SendRequest struct { // User provided operation id, this is used as idempotency key. OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"` // Stream id to uniquely identify a open stream between client and Restate. // There can be at most one open stream at the same time. StreamId string `protobuf:"bytes,2,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` // Contains the concatenated messages of the stream, encoded using the same // framing used by service-protocol Messages []byte `protobuf:"bytes,3,opt,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*SendRequest) Descriptor
deprecated
func (*SendRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.
func (*SendRequest) GetMessages ¶
func (x *SendRequest) GetMessages() []byte
func (*SendRequest) GetOperationId ¶
func (x *SendRequest) GetOperationId() string
func (*SendRequest) GetStreamId ¶
func (x *SendRequest) GetStreamId() string
func (*SendRequest) ProtoMessage ¶
func (*SendRequest) ProtoMessage()
func (*SendRequest) ProtoReflect ¶
func (x *SendRequest) ProtoReflect() protoreflect.Message
func (*SendRequest) Reset ¶
func (x *SendRequest) Reset()
func (*SendRequest) String ¶
func (x *SendRequest) String() string
type SendResponse ¶
type SendResponse struct { // Types that are assignable to Response: // // *SendResponse_Ok // *SendResponse_InvalidStream // *SendResponse_InvocationCompleted Response isSendResponse_Response `protobuf_oneof:"response"` // contains filtered or unexported fields }
func (*SendResponse) Descriptor
deprecated
func (*SendResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.
func (*SendResponse) GetInvalidStream ¶
func (x *SendResponse) GetInvalidStream() *emptypb.Empty
func (*SendResponse) GetInvocationCompleted ¶
func (x *SendResponse) GetInvocationCompleted() *emptypb.Empty
func (*SendResponse) GetOk ¶
func (x *SendResponse) GetOk() *emptypb.Empty
func (*SendResponse) GetResponse ¶
func (m *SendResponse) GetResponse() isSendResponse_Response
func (*SendResponse) ProtoMessage ¶
func (*SendResponse) ProtoMessage()
func (*SendResponse) ProtoReflect ¶
func (x *SendResponse) ProtoReflect() protoreflect.Message
func (*SendResponse) Reset ¶
func (x *SendResponse) Reset()
func (*SendResponse) String ¶
func (x *SendResponse) String() string
type SendResponse_InvalidStream ¶
type SendResponse_InvalidStream struct { // This means the provided stream_id is invalid, and it should not be // reused, nor the client should create a new stream using Start(). The // client can instead read the invocation result using GetResult(). InvalidStream *emptypb.Empty `protobuf:"bytes,2,opt,name=invalid_stream,json=invalidStream,proto3,oneof"` }
type SendResponse_Ok ¶
type StartRequest ¶
type StartRequest struct { // User provided operation id, this is used as idempotency key. OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"` // Stream id to uniquely identify a open stream between client and Restate. // There can be at most one open stream at the same time. StreamId string `protobuf:"bytes,2,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` // Retention period for the response in seconds. // After the invocation completes, the response will be persisted for the // given duration. Afterwards, the system will cleanup the response and treats // any subsequent invocation with same operation_id as new. // // If not set, 30 minutes will be used as retention period. RetentionPeriodSec uint32 `protobuf:"varint,3,opt,name=retention_period_sec,json=retentionPeriodSec,proto3" json:"retention_period_sec,omitempty"` // Argument of the invocation Argument []byte `protobuf:"bytes,4,opt,name=argument,proto3" json:"argument,omitempty"` // contains filtered or unexported fields }
func (*StartRequest) Descriptor
deprecated
func (*StartRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartRequest.ProtoReflect.Descriptor instead.
func (*StartRequest) GetArgument ¶
func (x *StartRequest) GetArgument() []byte
func (*StartRequest) GetOperationId ¶
func (x *StartRequest) GetOperationId() string
func (*StartRequest) GetRetentionPeriodSec ¶
func (x *StartRequest) GetRetentionPeriodSec() uint32
func (*StartRequest) GetStreamId ¶
func (x *StartRequest) GetStreamId() string
func (*StartRequest) ProtoMessage ¶
func (*StartRequest) ProtoMessage()
func (*StartRequest) ProtoReflect ¶
func (x *StartRequest) ProtoReflect() protoreflect.Message
func (*StartRequest) Reset ¶
func (x *StartRequest) Reset()
func (*StartRequest) String ¶
func (x *StartRequest) String() string
type StartResponse ¶
type StartResponse struct { // Types that are assignable to InvocationStatus: // // *StartResponse_Executing // *StartResponse_Completed InvocationStatus isStartResponse_InvocationStatus `protobuf_oneof:"invocation_status"` // contains filtered or unexported fields }
func (*StartResponse) Descriptor
deprecated
func (*StartResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartResponse.ProtoReflect.Descriptor instead.
func (*StartResponse) GetCompleted ¶
func (x *StartResponse) GetCompleted() *GetResultResponse
func (*StartResponse) GetExecuting ¶
func (x *StartResponse) GetExecuting() []byte
func (*StartResponse) GetInvocationStatus ¶
func (m *StartResponse) GetInvocationStatus() isStartResponse_InvocationStatus
func (*StartResponse) ProtoMessage ¶
func (*StartResponse) ProtoMessage()
func (*StartResponse) ProtoReflect ¶
func (x *StartResponse) ProtoReflect() protoreflect.Message
func (*StartResponse) Reset ¶
func (x *StartResponse) Reset()
func (*StartResponse) String ¶
func (x *StartResponse) String() string
type StartResponse_Completed ¶
type StartResponse_Completed struct { // Contains the result of the invocation Completed *GetResultResponse `protobuf:"bytes,2,opt,name=completed,proto3,oneof"` }
type StartResponse_Executing ¶
type StartResponse_Executing struct { // Contains the concatenated first messages of the stream, encoded using the // same framing used by service-protocol Executing []byte `protobuf:"bytes,1,opt,name=executing,proto3,oneof"` }