services

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 (*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 (*GetResultResponse_InvocationFailure) GetMessage

func (*GetResultResponse_InvocationFailure) ProtoMessage

func (*GetResultResponse_InvocationFailure) ProtoMessage()

func (*GetResultResponse_InvocationFailure) ProtoReflect

func (*GetResultResponse_InvocationFailure) Reset

func (*GetResultResponse_InvocationFailure) String

type GetResultResponse_None

type GetResultResponse_None struct {
	// See GetResult documentation
	None *emptypb.Empty `protobuf:"bytes,1,opt,name=none,proto3,oneof"`
}

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_InvocationCompleted

type RecvResponse_InvocationCompleted struct {
	// This means the invocation is completed, and the result should be
	// collected using GetResult
	InvocationCompleted *emptypb.Empty `protobuf:"bytes,3,opt,name=invocation_completed,json=invocationCompleted,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_InvocationCompleted

type SendResponse_InvocationCompleted struct {
	// This means the invocation is completed, and the result should be
	// collected using GetResult
	InvocationCompleted *emptypb.Empty `protobuf:"bytes,3,opt,name=invocation_completed,json=invocationCompleted,proto3,oneof"`
}

type SendResponse_Ok

type SendResponse_Ok struct {
	Ok *emptypb.Empty `protobuf:"bytes,1,opt,name=ok,proto3,oneof"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL