forked from p93542168/wheat-cache
30 lines
718 B
Go
30 lines
718 B
Go
// Code generated by gen-struct-const. DO NOT EDIT.
|
|
// make gen-struct generated
|
|
|
|
package structure
|
|
|
|
import "gitee.com/timedb/wheatCache/pkg/proto"
|
|
|
|
type KeyBaseInterface interface {
|
|
SizeByte() int64
|
|
|
|
// TODO RollBack 事务相关, V2 实现
|
|
RollBack() error
|
|
// Begin 事务相关, V2 实现
|
|
Begin() error
|
|
// Comment 事务相关, V2 实现
|
|
Comment() error
|
|
|
|
Encode() ([]byte, error)
|
|
}
|
|
|
|
type StringXInterface interface {
|
|
KeyBaseInterface
|
|
Set(*proto.SetRequest) ([]string, error)
|
|
Get(*proto.GetRequest) ([]string, error)
|
|
Add(*proto.AddRequest) ([]string, error)
|
|
Reduce(*proto.ReduceRequest) ([]string, error)
|
|
Setbit(*proto.SetbitRequest) ([]string, error)
|
|
Getbit(*proto.GetbitRequest) ([]string, error)
|
|
}
|