Documentation
¶
Overview ¶
Package memImp 内存实现运行时存储接口
Index ¶
- type RuntimeStorageMemImp
- func (r *RuntimeStorageMemImp) CheckKeyExit(key string) (bool, error)
- func (r *RuntimeStorageMemImp) DelValueByKey(key string) error
- func (r *RuntimeStorageMemImp) GetAllKeys() ([]string, error)
- func (r *RuntimeStorageMemImp) GetValueByKey(key string) (any, error)
- func (r *RuntimeStorageMemImp) GetValueByKeyToBool(key string) (bool, error)
- func (r *RuntimeStorageMemImp) GetValueByKeyToBytes(key string) ([]byte, error)
- func (r *RuntimeStorageMemImp) GetValueByKeyToInt(key string) (int, error)
- func (r *RuntimeStorageMemImp) GetValueByKeyToString(key string) (string, error)
- func (r *RuntimeStorageMemImp) SetValueByKey(key string, value any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuntimeStorageMemImp ¶
type RuntimeStorageMemImp struct {
// contains filtered or unexported fields
}
func NewRuntimeStorageMemImp ¶
func NewRuntimeStorageMemImp() *RuntimeStorageMemImp
func (*RuntimeStorageMemImp) CheckKeyExit ¶
func (r *RuntimeStorageMemImp) CheckKeyExit(key string) (bool, error)
func (*RuntimeStorageMemImp) DelValueByKey ¶
func (r *RuntimeStorageMemImp) DelValueByKey(key string) error
func (*RuntimeStorageMemImp) GetAllKeys ¶
func (r *RuntimeStorageMemImp) GetAllKeys() ([]string, error)
func (*RuntimeStorageMemImp) GetValueByKey ¶
func (r *RuntimeStorageMemImp) GetValueByKey(key string) (any, error)
func (*RuntimeStorageMemImp) GetValueByKeyToBool ¶
func (r *RuntimeStorageMemImp) GetValueByKeyToBool(key string) (bool, error)
func (*RuntimeStorageMemImp) GetValueByKeyToBytes ¶
func (r *RuntimeStorageMemImp) GetValueByKeyToBytes(key string) ([]byte, error)
func (*RuntimeStorageMemImp) GetValueByKeyToInt ¶
func (r *RuntimeStorageMemImp) GetValueByKeyToInt(key string) (int, error)
func (*RuntimeStorageMemImp) GetValueByKeyToString ¶
func (r *RuntimeStorageMemImp) GetValueByKeyToString(key string) (string, error)
func (*RuntimeStorageMemImp) SetValueByKey ¶
func (r *RuntimeStorageMemImp) SetValueByKey(key string, value any) error
Click to show internal directories.
Click to hide internal directories.