Documentation ¶
Index ¶
- type RedisClient
- func (r *RedisClient) GetBlock(height int64) ([]byte, error)
- func (r *RedisClient) GetDeltas(height int64) ([]byte, error, int64)
- func (r *RedisClient) GetLocker() bool
- func (r *RedisClient) ReleaseLocker()
- func (r *RedisClient) ResetMostRecentHeightAfterUpload(targetHeight int64, upload func(int64) bool) (bool, int64, error)
- func (r *RedisClient) SetBlock(height int64, bytes []byte) error
- func (r *RedisClient) SetDeltas(height int64, bytes []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
func NewRedisClient ¶
func (*RedisClient) GetDeltas ¶
func (r *RedisClient) GetDeltas(height int64) ([]byte, error, int64)
func (*RedisClient) GetLocker ¶
func (r *RedisClient) GetLocker() bool
func (*RedisClient) ReleaseLocker ¶
func (r *RedisClient) ReleaseLocker()
func (*RedisClient) ResetMostRecentHeightAfterUpload ¶
func (r *RedisClient) ResetMostRecentHeightAfterUpload(targetHeight int64, upload func(int64) bool) (bool, int64, error)
return bool: if change the value of latest_height, need to upload
Click to show internal directories.
Click to hide internal directories.