Documentation ¶
Index ¶
- Variables
- func RegisterSteleServer(s *grpc.Server, srv SteleServer)
- type BatchSetKVs
- type Prefix
- type SteleClient
- type SteleK
- type SteleKS
- type SteleKV
- func (*SteleKV) Descriptor() ([]byte, []int)deprecated
- func (x *SteleKV) GetKey() []byte
- func (x *SteleKV) GetTtl() int64
- func (x *SteleKV) GetVal() []byte
- func (*SteleKV) ProtoMessage()
- func (x *SteleKV) ProtoReflect() protoreflect.Message
- func (x *SteleKV) Reset()
- func (x *SteleKV) String() string
- type SteleRequest
- type SteleServer
- type SteleStatus
- type SteleVal
- type UnimplementedSteleServer
- func (*UnimplementedSteleServer) BatchGet(context.Context, *SteleKS) (*BatchSetKVs, error)
- func (*UnimplementedSteleServer) BatchSet(context.Context, *BatchSetKVs) (*SteleStatus, error)
- func (*UnimplementedSteleServer) Delete(context.Context, *SteleK) (*SteleStatus, error)
- func (*UnimplementedSteleServer) Get(context.Context, *SteleK) (*SteleVal, error)
- func (*UnimplementedSteleServer) IterateKeys(context.Context, *SteleRequest) (*SteleKS, error)
- func (*UnimplementedSteleServer) IterateKeysAndValues(context.Context, *SteleRequest) (*BatchSetKVs, error)
- func (*UnimplementedSteleServer) PrefixScan(context.Context, *Prefix) (*BatchSetKVs, error)
- func (*UnimplementedSteleServer) Set(context.Context, *SteleKV) (*SteleStatus, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var File_stele_proto protoreflect.FileDescriptor
Functions ¶
func RegisterSteleServer ¶
func RegisterSteleServer(s *grpc.Server, srv SteleServer)
Types ¶
type BatchSetKVs ¶
type BatchSetKVs struct { Kvs []*SteleKV `protobuf:"bytes,1,rep,name=kvs,proto3" json:"kvs,omitempty"` // contains filtered or unexported fields }
func (*BatchSetKVs) Descriptor
deprecated
func (*BatchSetKVs) Descriptor() ([]byte, []int)
Deprecated: Use BatchSetKVs.ProtoReflect.Descriptor instead.
func (*BatchSetKVs) GetKvs ¶
func (x *BatchSetKVs) GetKvs() []*SteleKV
func (*BatchSetKVs) ProtoMessage ¶
func (*BatchSetKVs) ProtoMessage()
func (*BatchSetKVs) ProtoReflect ¶
func (x *BatchSetKVs) ProtoReflect() protoreflect.Message
func (*BatchSetKVs) Reset ¶
func (x *BatchSetKVs) Reset()
func (*BatchSetKVs) String ¶
func (x *BatchSetKVs) String() string
type Prefix ¶
type Prefix struct { Prefix []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` // contains filtered or unexported fields }
func (*Prefix) Descriptor
deprecated
func (*Prefix) ProtoMessage ¶
func (*Prefix) ProtoMessage()
func (*Prefix) ProtoReflect ¶
func (x *Prefix) ProtoReflect() protoreflect.Message
type SteleClient ¶
type SteleClient interface { Set(ctx context.Context, in *SteleKV, opts ...grpc.CallOption) (*SteleStatus, error) Get(ctx context.Context, in *SteleK, opts ...grpc.CallOption) (*SteleVal, error) Delete(ctx context.Context, in *SteleK, opts ...grpc.CallOption) (*SteleStatus, error) // Batch Insertion Failure Rollback. 批量插入 失败 回滚 BatchSet(ctx context.Context, in *BatchSetKVs, opts ...grpc.CallOption) (*SteleStatus, error) // Batch Get. 批量查询 BatchGet(ctx context.Context, in *SteleKS, opts ...grpc.CallOption) (*BatchSetKVs, error) // Iterate over all keys. 遍历所有Key IterateKeys(ctx context.Context, in *SteleRequest, opts ...grpc.CallOption) (*SteleKS, error) // Iterate over keys and values. 遍历Key和value IterateKeysAndValues(ctx context.Context, in *SteleRequest, opts ...grpc.CallOption) (*BatchSetKVs, error) // Prefix Scan. 前缀扫描 PrefixScan(ctx context.Context, in *Prefix, opts ...grpc.CallOption) (*BatchSetKVs, error) }
SteleClient is the client API for Stele service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSteleClient ¶
func NewSteleClient(cc grpc.ClientConnInterface) SteleClient
type SteleK ¶
type SteleK struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*SteleK) Descriptor
deprecated
func (*SteleK) ProtoMessage ¶
func (*SteleK) ProtoMessage()
func (*SteleK) ProtoReflect ¶
func (x *SteleK) ProtoReflect() protoreflect.Message
type SteleKS ¶
type SteleKS struct { Keys [][]byte `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
func (*SteleKS) Descriptor
deprecated
func (*SteleKS) ProtoMessage ¶
func (*SteleKS) ProtoMessage()
func (*SteleKS) ProtoReflect ¶
func (x *SteleKS) ProtoReflect() protoreflect.Message
type SteleKV ¶
type SteleKV struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Val []byte `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"` Ttl int64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"` // contains filtered or unexported fields }
func (*SteleKV) Descriptor
deprecated
func (*SteleKV) ProtoMessage ¶
func (*SteleKV) ProtoMessage()
func (*SteleKV) ProtoReflect ¶
func (x *SteleKV) ProtoReflect() protoreflect.Message
type SteleRequest ¶
type SteleRequest struct {
// contains filtered or unexported fields
}
func (*SteleRequest) Descriptor
deprecated
func (*SteleRequest) Descriptor() ([]byte, []int)
Deprecated: Use SteleRequest.ProtoReflect.Descriptor instead.
func (*SteleRequest) ProtoMessage ¶
func (*SteleRequest) ProtoMessage()
func (*SteleRequest) ProtoReflect ¶
func (x *SteleRequest) ProtoReflect() protoreflect.Message
func (*SteleRequest) Reset ¶
func (x *SteleRequest) Reset()
func (*SteleRequest) String ¶
func (x *SteleRequest) String() string
type SteleServer ¶
type SteleServer interface { Set(context.Context, *SteleKV) (*SteleStatus, error) Get(context.Context, *SteleK) (*SteleVal, error) Delete(context.Context, *SteleK) (*SteleStatus, error) // Batch Insertion Failure Rollback. 批量插入 失败 回滚 BatchSet(context.Context, *BatchSetKVs) (*SteleStatus, error) // Batch Get. 批量查询 BatchGet(context.Context, *SteleKS) (*BatchSetKVs, error) // Iterate over all keys. 遍历所有Key IterateKeys(context.Context, *SteleRequest) (*SteleKS, error) // Iterate over keys and values. 遍历Key和value IterateKeysAndValues(context.Context, *SteleRequest) (*BatchSetKVs, error) // Prefix Scan. 前缀扫描 PrefixScan(context.Context, *Prefix) (*BatchSetKVs, error) }
SteleServer is the server API for Stele service.
type SteleStatus ¶
type SteleStatus struct {
// contains filtered or unexported fields
}
func (*SteleStatus) Descriptor
deprecated
func (*SteleStatus) Descriptor() ([]byte, []int)
Deprecated: Use SteleStatus.ProtoReflect.Descriptor instead.
func (*SteleStatus) ProtoMessage ¶
func (*SteleStatus) ProtoMessage()
func (*SteleStatus) ProtoReflect ¶
func (x *SteleStatus) ProtoReflect() protoreflect.Message
func (*SteleStatus) Reset ¶
func (x *SteleStatus) Reset()
func (*SteleStatus) String ¶
func (x *SteleStatus) String() string
type SteleVal ¶
type SteleVal struct { Val []byte `protobuf:"bytes,1,opt,name=val,proto3" json:"val,omitempty"` // contains filtered or unexported fields }
func (*SteleVal) Descriptor
deprecated
func (*SteleVal) ProtoMessage ¶
func (*SteleVal) ProtoMessage()
func (*SteleVal) ProtoReflect ¶
func (x *SteleVal) ProtoReflect() protoreflect.Message
type UnimplementedSteleServer ¶
type UnimplementedSteleServer struct { }
UnimplementedSteleServer can be embedded to have forward compatible implementations.
func (*UnimplementedSteleServer) BatchGet ¶
func (*UnimplementedSteleServer) BatchGet(context.Context, *SteleKS) (*BatchSetKVs, error)
func (*UnimplementedSteleServer) BatchSet ¶
func (*UnimplementedSteleServer) BatchSet(context.Context, *BatchSetKVs) (*SteleStatus, error)
func (*UnimplementedSteleServer) Delete ¶ added in v0.0.5
func (*UnimplementedSteleServer) Delete(context.Context, *SteleK) (*SteleStatus, error)
func (*UnimplementedSteleServer) IterateKeys ¶
func (*UnimplementedSteleServer) IterateKeys(context.Context, *SteleRequest) (*SteleKS, error)
func (*UnimplementedSteleServer) IterateKeysAndValues ¶
func (*UnimplementedSteleServer) IterateKeysAndValues(context.Context, *SteleRequest) (*BatchSetKVs, error)
func (*UnimplementedSteleServer) PrefixScan ¶
func (*UnimplementedSteleServer) PrefixScan(context.Context, *Prefix) (*BatchSetKVs, error)
func (*UnimplementedSteleServer) Set ¶
func (*UnimplementedSteleServer) Set(context.Context, *SteleKV) (*SteleStatus, error)
Click to show internal directories.
Click to hide internal directories.