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
- type AddRequest
- type AddWatcherRequest
- func (*AddWatcherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddWatcherRequest) GetAwakeableId() string
- func (*AddWatcherRequest) ProtoMessage()
- func (x *AddWatcherRequest) ProtoReflect() protoreflect.Message
- func (x *AddWatcherRequest) Reset()
- func (x *AddWatcherRequest) String() string
- type AddWatcherResponse
- type CounterClient
- type CounterServer
- type GetRequest
- type GetResponse
- type GreeterClient
- type GreeterServer
- type HelloRequest
- type HelloResponse
- type UnimplementedCounterServer
- func (UnimplementedCounterServer) Add(ctx sdk_go.ObjectContext, req *AddRequest) (*GetResponse, error)
- func (UnimplementedCounterServer) AddWatcher(ctx sdk_go.ObjectContext, req *AddWatcherRequest) (*AddWatcherResponse, error)
- func (UnimplementedCounterServer) Get(ctx sdk_go.ObjectSharedContext, req *GetRequest) (*GetResponse, error)
- func (UnimplementedCounterServer) Watch(ctx sdk_go.ObjectSharedContext, req *WatchRequest) (*GetResponse, error)
- type UnimplementedGreeterServer
- type UnsafeCounterServer
- type UnsafeGreeterServer
- type WatchRequest
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
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 AddWatcherRequest ¶
type AddWatcherRequest struct {
AwakeableId string `protobuf:"bytes,1,opt,name=awakeable_id,json=awakeableId,proto3" json:"awakeable_id,omitempty"`
// contains filtered or unexported fields
}
func (*AddWatcherRequest) Descriptor
deprecated
func (*AddWatcherRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddWatcherRequest.ProtoReflect.Descriptor instead.
func (*AddWatcherRequest) GetAwakeableId ¶
func (x *AddWatcherRequest) GetAwakeableId() string
func (*AddWatcherRequest) ProtoMessage ¶
func (*AddWatcherRequest) ProtoMessage()
func (*AddWatcherRequest) ProtoReflect ¶
func (x *AddWatcherRequest) ProtoReflect() protoreflect.Message
func (*AddWatcherRequest) Reset ¶
func (x *AddWatcherRequest) Reset()
func (*AddWatcherRequest) String ¶
func (x *AddWatcherRequest) String() string
type AddWatcherResponse ¶
type AddWatcherResponse struct {
// contains filtered or unexported fields
}
func (*AddWatcherResponse) Descriptor
deprecated
func (*AddWatcherResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddWatcherResponse.ProtoReflect.Descriptor instead.
func (*AddWatcherResponse) ProtoMessage ¶
func (*AddWatcherResponse) ProtoMessage()
func (*AddWatcherResponse) ProtoReflect ¶
func (x *AddWatcherResponse) ProtoReflect() protoreflect.Message
func (*AddWatcherResponse) Reset ¶
func (x *AddWatcherResponse) Reset()
func (*AddWatcherResponse) String ¶
func (x *AddWatcherResponse) 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]
// Internal method to store an awakeable ID for the Watch method
AddWatcher(opts ...sdk_go.ClientOption) sdk_go.Client[*AddWatcherRequest, *AddWatcherResponse]
// Wait for the counter to change and then return the new value
Watch(opts ...sdk_go.ClientOption) sdk_go.Client[*WatchRequest, *GetResponse]
}
CounterClient is the client API for Counter service.
func NewCounterClient ¶
func NewCounterClient(ctx sdk_go.Context, key string, opts ...sdk_go.ClientOption) CounterClient
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)
// Internal method to store an awakeable ID for the Watch method
AddWatcher(ctx sdk_go.ObjectContext, req *AddWatcherRequest) (*AddWatcherResponse, error)
// Wait for the counter to change and then return the new value
Watch(ctx sdk_go.ObjectSharedContext, req *WatchRequest) (*GetResponse, error)
}
CounterServer is the server API for Counter service. All implementations should embed UnimplementedCounterServer for forward compatibility.
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 Greeter service.
func NewGreeterClient ¶
func NewGreeterClient(ctx sdk_go.Context, opts ...sdk_go.ClientOption) GreeterClient
type GreeterServer ¶
type GreeterServer interface {
SayHello(ctx sdk_go.Context, req *HelloRequest) (*HelloResponse, error)
}
GreeterServer is the server API for 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 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) AddWatcher ¶
func (UnimplementedCounterServer) AddWatcher(ctx sdk_go.ObjectContext, req *AddWatcherRequest) (*AddWatcherResponse, error)
func (UnimplementedCounterServer) Get ¶
func (UnimplementedCounterServer) Get(ctx sdk_go.ObjectSharedContext, req *GetRequest) (*GetResponse, error)
func (UnimplementedCounterServer) Watch ¶
func (UnimplementedCounterServer) Watch(ctx sdk_go.ObjectSharedContext, req *WatchRequest) (*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 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 WatchRequest ¶
type WatchRequest struct {
TimeoutMillis int64 `protobuf:"varint,1,opt,name=timeout_millis,json=timeoutMillis,proto3" json:"timeout_millis,omitempty"`
// contains filtered or unexported fields
}
func (*WatchRequest) Descriptor
deprecated
func (*WatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
func (*WatchRequest) GetTimeoutMillis ¶
func (x *WatchRequest) GetTimeoutMillis() int64
func (*WatchRequest) ProtoMessage ¶
func (*WatchRequest) ProtoMessage()
func (*WatchRequest) ProtoReflect ¶
func (x *WatchRequest) ProtoReflect() protoreflect.Message
func (*WatchRequest) Reset ¶
func (x *WatchRequest) Reset()
func (*WatchRequest) String ¶
func (x *WatchRequest) String() string