Documentation
¶
Index ¶
- Variables
- func NewCounterServer(srv CounterServer, opts ...sdk_go.ServiceDefinitionOption) sdk_go.ServiceDefinition
- func NewGreeterServer(srv GreeterServer, opts ...sdk_go.ServiceDefinitionOption) sdk_go.ServiceDefinition
- func NewWorkflowServer(srv WorkflowServer, opts ...sdk_go.ServiceDefinitionOption) sdk_go.ServiceDefinition
- type AddRequest
- type CounterClient
- type CounterIngressClient
- type CounterServer
- type FinishRequest
- type FinishResponse
- type GetRequest
- type GetResponse
- type GreeterClient
- type GreeterIngressClient
- type GreeterServer
- type HelloRequest
- type HelloResponse
- type RunRequest
- type RunResponse
- type StatusRequest
- type StatusResponse
- type Test
- func (*Test) Descriptor() ([]byte, []int)deprecated
- func (x *Test) GetAnotherInner() *StatusResponse
- func (x *Test) GetInner() *Test
- func (x *Test) GetPrimitive() string
- func (*Test) ProtoMessage()
- func (x *Test) ProtoReflect() protoreflect.Message
- func (x *Test) Reset()
- func (x *Test) String() string
- type UnimplementedCounterServer
- type UnimplementedGreeterServer
- type UnimplementedWorkflowServer
- func (UnimplementedWorkflowServer) Finish(ctx sdk_go.WorkflowSharedContext, req *FinishRequest) (*FinishResponse, error)
- func (UnimplementedWorkflowServer) Run(ctx sdk_go.WorkflowContext, req *RunRequest) (*RunResponse, error)
- func (UnimplementedWorkflowServer) Status(ctx sdk_go.WorkflowSharedContext, req *StatusRequest) (*StatusResponse, error)
- type UnsafeCounterServer
- type UnsafeGreeterServer
- type UnsafeWorkflowServer
- type WorkflowClient
- type WorkflowIngressClient
- type WorkflowServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_helloworld_proto protoreflect.FileDescriptor
Functions ¶
func NewCounterServer ¶
func NewCounterServer(srv CounterServer, opts ...sdk_go.ServiceDefinitionOption) sdk_go.ServiceDefinition
func NewGreeterServer ¶
func NewGreeterServer(srv GreeterServer, opts ...sdk_go.ServiceDefinitionOption) sdk_go.ServiceDefinition
func NewWorkflowServer ¶
func NewWorkflowServer(srv WorkflowServer, opts ...sdk_go.ServiceDefinitionOption) sdk_go.ServiceDefinition
Types ¶
type AddRequest ¶
type AddRequest struct {
Delta int64 `protobuf:"varint,1,opt,name=delta,proto3" json:"delta,omitempty"`
// contains filtered or unexported fields
}
func (*AddRequest) Descriptor
deprecated
func (*AddRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.
func (*AddRequest) GetDelta ¶
func (x *AddRequest) GetDelta() int64
func (*AddRequest) ProtoMessage ¶
func (*AddRequest) ProtoMessage()
func (*AddRequest) ProtoReflect ¶
func (x *AddRequest) ProtoReflect() protoreflect.Message
func (*AddRequest) Reset ¶
func (x *AddRequest) Reset()
func (*AddRequest) String ¶
func (x *AddRequest) String() string
type CounterClient ¶
type CounterClient interface {
// Mutate the value
Add(opts ...sdk_go.ClientOption) sdk_go.Client[*AddRequest, *GetResponse]
// Get the current value
Get(opts ...sdk_go.ClientOption) sdk_go.Client[*GetRequest, *GetResponse]
}
CounterClient is the client API for helloworld.Counter service.
func NewCounterClient ¶
func NewCounterClient(ctx sdk_go.Context, key string, opts ...sdk_go.ClientOption) CounterClient
type CounterIngressClient ¶
type CounterIngressClient interface {
// Mutate the value
Add() ingress.Requester[*AddRequest, *GetResponse]
// Get the current value
Get() ingress.Requester[*GetRequest, *GetResponse]
}
CounterIngressClient is the ingress client API for helloworld.Counter service.
This client is used to call the service from outside of a Restate context.
func NewCounterIngressClient ¶
func NewCounterIngressClient(client *ingress.Client, key string) CounterIngressClient
type CounterServer ¶
type CounterServer interface {
// Mutate the value
Add(ctx sdk_go.ObjectContext, req *AddRequest) (*GetResponse, error)
// Get the current value
Get(ctx sdk_go.ObjectSharedContext, req *GetRequest) (*GetResponse, error)
}
CounterServer is the server API for helloworld.Counter service. All implementations should embed UnimplementedCounterServer for forward compatibility.
type FinishRequest ¶
type FinishRequest struct {
// contains filtered or unexported fields
}
func (*FinishRequest) Descriptor
deprecated
func (*FinishRequest) Descriptor() ([]byte, []int)
Deprecated: Use FinishRequest.ProtoReflect.Descriptor instead.
func (*FinishRequest) ProtoMessage ¶
func (*FinishRequest) ProtoMessage()
func (*FinishRequest) ProtoReflect ¶
func (x *FinishRequest) ProtoReflect() protoreflect.Message
func (*FinishRequest) Reset ¶
func (x *FinishRequest) Reset()
func (*FinishRequest) String ¶
func (x *FinishRequest) String() string
type FinishResponse ¶
type FinishResponse struct {
// contains filtered or unexported fields
}
func (*FinishResponse) Descriptor
deprecated
func (*FinishResponse) Descriptor() ([]byte, []int)
Deprecated: Use FinishResponse.ProtoReflect.Descriptor instead.
func (*FinishResponse) ProtoMessage ¶
func (*FinishResponse) ProtoMessage()
func (*FinishResponse) ProtoReflect ¶
func (x *FinishResponse) ProtoReflect() protoreflect.Message
func (*FinishResponse) Reset ¶
func (x *FinishResponse) Reset()
func (*FinishResponse) String ¶
func (x *FinishResponse) String() string
type GetRequest ¶
type GetRequest struct {
// contains filtered or unexported fields
}
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct {
Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetValue ¶
func (x *GetResponse) GetValue() int64
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type GreeterClient ¶
type GreeterClient interface {
SayHello(opts ...sdk_go.ClientOption) sdk_go.Client[*HelloRequest, *HelloResponse]
}
GreeterClient is the client API for helloworld.Greeter service.
func NewGreeterClient ¶
func NewGreeterClient(ctx sdk_go.Context, opts ...sdk_go.ClientOption) GreeterClient
type GreeterIngressClient ¶
type GreeterIngressClient interface {
SayHello() ingress.Requester[*HelloRequest, *HelloResponse]
}
GreeterIngressClient is the ingress client API for helloworld.Greeter service.
This client is used to call the service from outside of a Restate context.
func NewGreeterIngressClient ¶
func NewGreeterIngressClient(client *ingress.Client) GreeterIngressClient
type GreeterServer ¶
type GreeterServer interface {
SayHello(ctx sdk_go.Context, req *HelloRequest) (*HelloResponse, error)
}
GreeterServer is the server API for helloworld.Greeter service. All implementations should embed UnimplementedGreeterServer for forward compatibility.
type HelloRequest ¶
type HelloRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetName ¶
func (x *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶
func (x *HelloRequest) ProtoReflect() protoreflect.Message
func (*HelloRequest) Reset ¶
func (x *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (x *HelloRequest) String() string
type HelloResponse ¶
type HelloResponse struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*HelloResponse) Descriptor
deprecated
func (*HelloResponse) Descriptor() ([]byte, []int)
Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.
func (*HelloResponse) GetMessage ¶
func (x *HelloResponse) GetMessage() string
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) ProtoReflect ¶
func (x *HelloResponse) ProtoReflect() protoreflect.Message
func (*HelloResponse) Reset ¶
func (x *HelloResponse) Reset()
func (*HelloResponse) String ¶
func (x *HelloResponse) String() string
type RunRequest ¶
type RunRequest struct {
// contains filtered or unexported fields
}
func (*RunRequest) Descriptor
deprecated
func (*RunRequest) Descriptor() ([]byte, []int)
Deprecated: Use RunRequest.ProtoReflect.Descriptor instead.
func (*RunRequest) ProtoMessage ¶
func (*RunRequest) ProtoMessage()
func (*RunRequest) ProtoReflect ¶
func (x *RunRequest) ProtoReflect() protoreflect.Message
func (*RunRequest) Reset ¶
func (x *RunRequest) Reset()
func (*RunRequest) String ¶
func (x *RunRequest) String() string
type RunResponse ¶
type RunResponse struct {
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*RunResponse) Descriptor
deprecated
func (*RunResponse) Descriptor() ([]byte, []int)
Deprecated: Use RunResponse.ProtoReflect.Descriptor instead.
func (*RunResponse) GetStatus ¶
func (x *RunResponse) GetStatus() string
func (*RunResponse) ProtoMessage ¶
func (*RunResponse) ProtoMessage()
func (*RunResponse) ProtoReflect ¶
func (x *RunResponse) ProtoReflect() protoreflect.Message
func (*RunResponse) Reset ¶
func (x *RunResponse) Reset()
func (*RunResponse) String ¶
func (x *RunResponse) String() string
type StatusRequest ¶
type StatusRequest struct {
// contains filtered or unexported fields
}
func (*StatusRequest) Descriptor
deprecated
func (*StatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) ProtoReflect ¶
func (x *StatusRequest) ProtoReflect() protoreflect.Message
func (*StatusRequest) Reset ¶
func (x *StatusRequest) Reset()
func (*StatusRequest) String ¶
func (x *StatusRequest) String() string
type StatusResponse ¶
type StatusResponse struct {
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*StatusResponse) Descriptor
deprecated
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetStatus ¶
func (x *StatusResponse) GetStatus() string
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶
func (x *StatusResponse) String() string
type Test ¶
type Test struct {
Inner *Test `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"`
Primitive string `protobuf:"bytes,2,opt,name=primitive,proto3" json:"primitive,omitempty"`
AnotherInner *StatusResponse `protobuf:"bytes,3,opt,name=another_inner,json=anotherInner,proto3" json:"another_inner,omitempty"`
// contains filtered or unexported fields
}
func (*Test) Descriptor
deprecated
func (*Test) GetAnotherInner ¶
func (x *Test) GetAnotherInner() *StatusResponse
func (*Test) GetPrimitive ¶
func (*Test) ProtoMessage ¶
func (*Test) ProtoMessage()
func (*Test) ProtoReflect ¶
func (x *Test) ProtoReflect() protoreflect.Message
type UnimplementedCounterServer ¶
type UnimplementedCounterServer struct{}
UnimplementedCounterServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedCounterServer) Add ¶
func (UnimplementedCounterServer) Add(ctx sdk_go.ObjectContext, req *AddRequest) (*GetResponse, error)
func (UnimplementedCounterServer) Get ¶
func (UnimplementedCounterServer) Get(ctx sdk_go.ObjectSharedContext, req *GetRequest) (*GetResponse, error)
type UnimplementedGreeterServer ¶
type UnimplementedGreeterServer struct{}
UnimplementedGreeterServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedGreeterServer) SayHello ¶
func (UnimplementedGreeterServer) SayHello(ctx sdk_go.Context, req *HelloRequest) (*HelloResponse, error)
type UnimplementedWorkflowServer ¶
type UnimplementedWorkflowServer struct{}
UnimplementedWorkflowServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedWorkflowServer) Finish ¶
func (UnimplementedWorkflowServer) Finish(ctx sdk_go.WorkflowSharedContext, req *FinishRequest) (*FinishResponse, error)
func (UnimplementedWorkflowServer) Run ¶
func (UnimplementedWorkflowServer) Run(ctx sdk_go.WorkflowContext, req *RunRequest) (*RunResponse, error)
func (UnimplementedWorkflowServer) Status ¶
func (UnimplementedWorkflowServer) Status(ctx sdk_go.WorkflowSharedContext, req *StatusRequest) (*StatusResponse, error)
type UnsafeCounterServer ¶
type UnsafeCounterServer interface {
// contains filtered or unexported methods
}
UnsafeCounterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CounterServer will result in compilation errors.
type UnsafeGreeterServer ¶
type UnsafeGreeterServer interface {
// contains filtered or unexported methods
}
UnsafeGreeterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GreeterServer will result in compilation errors.
type UnsafeWorkflowServer ¶
type UnsafeWorkflowServer interface {
// contains filtered or unexported methods
}
UnsafeWorkflowServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WorkflowServer will result in compilation errors.
type WorkflowClient ¶
type WorkflowClient interface {
// Execute the workflow
Run(opts ...sdk_go.ClientOption) sdk_go.Client[*RunRequest, *RunResponse]
// Unblock the workflow
Finish(opts ...sdk_go.ClientOption) sdk_go.Client[*FinishRequest, *FinishResponse]
// Check the current status
Status(opts ...sdk_go.ClientOption) sdk_go.Client[*StatusRequest, *StatusResponse]
}
WorkflowClient is the client API for helloworld.Workflow service.
func NewWorkflowClient ¶
func NewWorkflowClient(ctx sdk_go.Context, workflowID string, opts ...sdk_go.ClientOption) WorkflowClient
type WorkflowIngressClient ¶
type WorkflowIngressClient interface {
// Execute the workflow
Submit(ctx context.Context, input *RunRequest, opts ...ingress.SendOption) (ingress.SendResponse[*RunResponse], error)
// Handle creates an handle to the submitted workflow, useful to retrieve its output or attach to it
Handle() ingress.InvocationHandle[*RunResponse]
// Unblock the workflow
Finish() ingress.Requester[*FinishRequest, *FinishResponse]
// Check the current status
Status() ingress.Requester[*StatusRequest, *StatusResponse]
}
WorkflowIngressClient is the ingress client API for helloworld.Workflow service.
This client is used to call the service from outside of a Restate context.
func NewWorkflowIngressClient ¶
func NewWorkflowIngressClient(client *ingress.Client, workflowID string) WorkflowIngressClient
type WorkflowServer ¶
type WorkflowServer interface {
// Execute the workflow
Run(ctx sdk_go.WorkflowContext, req *RunRequest) (*RunResponse, error)
// Unblock the workflow
Finish(ctx sdk_go.WorkflowSharedContext, req *FinishRequest) (*FinishResponse, error)
// Check the current status
Status(ctx sdk_go.WorkflowSharedContext, req *StatusRequest) (*StatusResponse, error)
}
WorkflowServer is the server API for helloworld.Workflow service. All implementations should embed UnimplementedWorkflowServer for forward compatibility.