Documentation
¶
Index ¶
- Variables
- func RegisterStoreServer(s *grpc.Server, srv StoreServer)
- type DecreaseReq
- type DecreaseResp
- type DelReq
- type DelResp
- type ExpireReq
- type ExpireResp
- type GetReq
- type GetResp
- type HashDelReq
- type HashDelResp
- type HashGetReq
- type HashGetResp
- type IncreaseReq
- type IncreaseResp
- type SetReq
- type SetResp
- type StoreClient
- type StoreServer
- type UnimplementedStoreServer
- func (*UnimplementedStoreServer) Decrease(context.Context, *DecreaseReq) (*DecreaseResp, error)
- func (*UnimplementedStoreServer) Del(context.Context, *DelReq) (*DelResp, error)
- func (*UnimplementedStoreServer) Expire(context.Context, *ExpireReq) (*ExpireResp, error)
- func (*UnimplementedStoreServer) Get(context.Context, *GetReq) (*GetResp, error)
- func (*UnimplementedStoreServer) HashDel(context.Context, *HashDelReq) (*HashDelResp, error)
- func (*UnimplementedStoreServer) HashGet(context.Context, *HashGetReq) (*HashGetResp, error)
- func (*UnimplementedStoreServer) Increase(context.Context, *IncreaseReq) (*IncreaseResp, error)
- func (*UnimplementedStoreServer) Set(context.Context, *SetReq) (*SetResp, error)
Constants ¶
This section is empty.
Variables ¶
var File_proto_store_v1_store_proto protoreflect.FileDescriptor
Functions ¶
func RegisterStoreServer ¶
func RegisterStoreServer(s *grpc.Server, srv StoreServer)
Types ¶
type DecreaseReq ¶
type DecreaseReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DecreaseReq) Descriptor
deprecated
func (*DecreaseReq) Descriptor() ([]byte, []int)
Deprecated: Use DecreaseReq.ProtoReflect.Descriptor instead.
func (*DecreaseReq) GetKey ¶
func (x *DecreaseReq) GetKey() string
func (*DecreaseReq) ProtoMessage ¶
func (*DecreaseReq) ProtoMessage()
func (*DecreaseReq) ProtoReflect ¶
func (x *DecreaseReq) ProtoReflect() protoreflect.Message
func (*DecreaseReq) Reset ¶
func (x *DecreaseReq) Reset()
func (*DecreaseReq) String ¶
func (x *DecreaseReq) String() string
type DecreaseResp ¶
type DecreaseResp struct {
// contains filtered or unexported fields
}
func (*DecreaseResp) Descriptor
deprecated
func (*DecreaseResp) Descriptor() ([]byte, []int)
Deprecated: Use DecreaseResp.ProtoReflect.Descriptor instead.
func (*DecreaseResp) ProtoMessage ¶
func (*DecreaseResp) ProtoMessage()
func (*DecreaseResp) ProtoReflect ¶
func (x *DecreaseResp) ProtoReflect() protoreflect.Message
func (*DecreaseResp) Reset ¶
func (x *DecreaseResp) Reset()
func (*DecreaseResp) String ¶
func (x *DecreaseResp) String() string
type DelReq ¶
type DelReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DelReq) Descriptor
deprecated
func (*DelReq) ProtoMessage ¶
func (*DelReq) ProtoMessage()
func (*DelReq) ProtoReflect ¶
func (x *DelReq) ProtoReflect() protoreflect.Message
type DelResp ¶
type DelResp struct {
// contains filtered or unexported fields
}
func (*DelResp) Descriptor
deprecated
func (*DelResp) ProtoMessage ¶
func (*DelResp) ProtoMessage()
func (*DelResp) ProtoReflect ¶
func (x *DelResp) ProtoReflect() protoreflect.Message
type ExpireReq ¶
type ExpireReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Expire int32 `protobuf:"varint,2,opt,name=expire,proto3" json:"expire,omitempty"` // contains filtered or unexported fields }
func (*ExpireReq) Descriptor
deprecated
func (*ExpireReq) ProtoMessage ¶
func (*ExpireReq) ProtoMessage()
func (*ExpireReq) ProtoReflect ¶
func (x *ExpireReq) ProtoReflect() protoreflect.Message
type ExpireResp ¶
type ExpireResp struct {
// contains filtered or unexported fields
}
func (*ExpireResp) Descriptor
deprecated
func (*ExpireResp) Descriptor() ([]byte, []int)
Deprecated: Use ExpireResp.ProtoReflect.Descriptor instead.
func (*ExpireResp) ProtoMessage ¶
func (*ExpireResp) ProtoMessage()
func (*ExpireResp) ProtoReflect ¶
func (x *ExpireResp) ProtoReflect() protoreflect.Message
func (*ExpireResp) Reset ¶
func (x *ExpireResp) Reset()
func (*ExpireResp) String ¶
func (x *ExpireResp) String() string
type GetReq ¶
type GetReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetReq) Descriptor
deprecated
func (*GetReq) ProtoMessage ¶
func (*GetReq) ProtoMessage()
func (*GetReq) ProtoReflect ¶
func (x *GetReq) ProtoReflect() protoreflect.Message
type GetResp ¶
type GetResp struct { Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*GetResp) Descriptor
deprecated
func (*GetResp) ProtoMessage ¶
func (*GetResp) ProtoMessage()
func (*GetResp) ProtoReflect ¶
func (x *GetResp) ProtoReflect() protoreflect.Message
type HashDelReq ¶
type HashDelReq struct { HashKey string `protobuf:"bytes,1,opt,name=hashKey,proto3" json:"hashKey,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*HashDelReq) Descriptor
deprecated
func (*HashDelReq) Descriptor() ([]byte, []int)
Deprecated: Use HashDelReq.ProtoReflect.Descriptor instead.
func (*HashDelReq) GetHashKey ¶
func (x *HashDelReq) GetHashKey() string
func (*HashDelReq) GetKey ¶
func (x *HashDelReq) GetKey() string
func (*HashDelReq) ProtoMessage ¶
func (*HashDelReq) ProtoMessage()
func (*HashDelReq) ProtoReflect ¶
func (x *HashDelReq) ProtoReflect() protoreflect.Message
func (*HashDelReq) Reset ¶
func (x *HashDelReq) Reset()
func (*HashDelReq) String ¶
func (x *HashDelReq) String() string
type HashDelResp ¶
type HashDelResp struct {
// contains filtered or unexported fields
}
func (*HashDelResp) Descriptor
deprecated
func (*HashDelResp) Descriptor() ([]byte, []int)
Deprecated: Use HashDelResp.ProtoReflect.Descriptor instead.
func (*HashDelResp) ProtoMessage ¶
func (*HashDelResp) ProtoMessage()
func (*HashDelResp) ProtoReflect ¶
func (x *HashDelResp) ProtoReflect() protoreflect.Message
func (*HashDelResp) Reset ¶
func (x *HashDelResp) Reset()
func (*HashDelResp) String ¶
func (x *HashDelResp) String() string
type HashGetReq ¶
type HashGetReq struct { HashKey string `protobuf:"bytes,1,opt,name=hashKey,proto3" json:"hashKey,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*HashGetReq) Descriptor
deprecated
func (*HashGetReq) Descriptor() ([]byte, []int)
Deprecated: Use HashGetReq.ProtoReflect.Descriptor instead.
func (*HashGetReq) GetHashKey ¶
func (x *HashGetReq) GetHashKey() string
func (*HashGetReq) GetKey ¶
func (x *HashGetReq) GetKey() string
func (*HashGetReq) ProtoMessage ¶
func (*HashGetReq) ProtoMessage()
func (*HashGetReq) ProtoReflect ¶
func (x *HashGetReq) ProtoReflect() protoreflect.Message
func (*HashGetReq) Reset ¶
func (x *HashGetReq) Reset()
func (*HashGetReq) String ¶
func (x *HashGetReq) String() string
type HashGetResp ¶
type HashGetResp struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*HashGetResp) Descriptor
deprecated
func (*HashGetResp) Descriptor() ([]byte, []int)
Deprecated: Use HashGetResp.ProtoReflect.Descriptor instead.
func (*HashGetResp) GetValue ¶
func (x *HashGetResp) GetValue() string
func (*HashGetResp) ProtoMessage ¶
func (*HashGetResp) ProtoMessage()
func (*HashGetResp) ProtoReflect ¶
func (x *HashGetResp) ProtoReflect() protoreflect.Message
func (*HashGetResp) Reset ¶
func (x *HashGetResp) Reset()
func (*HashGetResp) String ¶
func (x *HashGetResp) String() string
type IncreaseReq ¶
type IncreaseReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*IncreaseReq) Descriptor
deprecated
func (*IncreaseReq) Descriptor() ([]byte, []int)
Deprecated: Use IncreaseReq.ProtoReflect.Descriptor instead.
func (*IncreaseReq) GetKey ¶
func (x *IncreaseReq) GetKey() string
func (*IncreaseReq) ProtoMessage ¶
func (*IncreaseReq) ProtoMessage()
func (*IncreaseReq) ProtoReflect ¶
func (x *IncreaseReq) ProtoReflect() protoreflect.Message
func (*IncreaseReq) Reset ¶
func (x *IncreaseReq) Reset()
func (*IncreaseReq) String ¶
func (x *IncreaseReq) String() string
type IncreaseResp ¶
type IncreaseResp struct {
// contains filtered or unexported fields
}
func (*IncreaseResp) Descriptor
deprecated
func (*IncreaseResp) Descriptor() ([]byte, []int)
Deprecated: Use IncreaseResp.ProtoReflect.Descriptor instead.
func (*IncreaseResp) ProtoMessage ¶
func (*IncreaseResp) ProtoMessage()
func (*IncreaseResp) ProtoReflect ¶
func (x *IncreaseResp) ProtoReflect() protoreflect.Message
func (*IncreaseResp) Reset ¶
func (x *IncreaseResp) Reset()
func (*IncreaseResp) String ¶
func (x *IncreaseResp) String() string
type SetReq ¶
type SetReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Expire int32 `protobuf:"varint,3,opt,name=expire,proto3" json:"expire,omitempty"` // contains filtered or unexported fields }
func (*SetReq) Descriptor
deprecated
func (*SetReq) ProtoMessage ¶
func (*SetReq) ProtoMessage()
func (*SetReq) ProtoReflect ¶
func (x *SetReq) ProtoReflect() protoreflect.Message
type SetResp ¶
type SetResp struct {
// contains filtered or unexported fields
}
func (*SetResp) Descriptor
deprecated
func (*SetResp) ProtoMessage ¶
func (*SetResp) ProtoMessage()
func (*SetResp) ProtoReflect ¶
func (x *SetResp) ProtoReflect() protoreflect.Message
type StoreClient ¶
type StoreClient interface { Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*GetResp, error) Set(ctx context.Context, in *SetReq, opts ...grpc.CallOption) (*SetResp, error) Del(ctx context.Context, in *DelReq, opts ...grpc.CallOption) (*DelResp, error) HashGet(ctx context.Context, in *HashGetReq, opts ...grpc.CallOption) (*HashGetResp, error) HashDel(ctx context.Context, in *HashDelReq, opts ...grpc.CallOption) (*HashDelResp, error) Increase(ctx context.Context, in *IncreaseReq, opts ...grpc.CallOption) (*IncreaseResp, error) Decrease(ctx context.Context, in *DecreaseReq, opts ...grpc.CallOption) (*DecreaseResp, error) Expire(ctx context.Context, in *ExpireReq, opts ...grpc.CallOption) (*ExpireResp, error) }
StoreClient is the client API for Store service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStoreClient ¶
func NewStoreClient(cc grpc.ClientConnInterface) StoreClient
type StoreServer ¶
type StoreServer interface { Get(context.Context, *GetReq) (*GetResp, error) Set(context.Context, *SetReq) (*SetResp, error) Del(context.Context, *DelReq) (*DelResp, error) HashGet(context.Context, *HashGetReq) (*HashGetResp, error) HashDel(context.Context, *HashDelReq) (*HashDelResp, error) Increase(context.Context, *IncreaseReq) (*IncreaseResp, error) Decrease(context.Context, *DecreaseReq) (*DecreaseResp, error) Expire(context.Context, *ExpireReq) (*ExpireResp, error) }
StoreServer is the server API for Store service.
type UnimplementedStoreServer ¶
type UnimplementedStoreServer struct { }
UnimplementedStoreServer can be embedded to have forward compatible implementations.
func (*UnimplementedStoreServer) Decrease ¶
func (*UnimplementedStoreServer) Decrease(context.Context, *DecreaseReq) (*DecreaseResp, error)
func (*UnimplementedStoreServer) Expire ¶
func (*UnimplementedStoreServer) Expire(context.Context, *ExpireReq) (*ExpireResp, error)
func (*UnimplementedStoreServer) HashDel ¶
func (*UnimplementedStoreServer) HashDel(context.Context, *HashDelReq) (*HashDelResp, error)
func (*UnimplementedStoreServer) HashGet ¶
func (*UnimplementedStoreServer) HashGet(context.Context, *HashGetReq) (*HashGetResp, error)
func (*UnimplementedStoreServer) Increase ¶
func (*UnimplementedStoreServer) Increase(context.Context, *IncreaseReq) (*IncreaseResp, error)