Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStorVersionMismatch = errors.New("error version mismatch")
ErrStorVersionMismatch is returned when the version of the checkpoint in the storage
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is a redis storage implementation
func NewStorage ¶
func NewStorage( ctx context.Context, addrs []string, password string, withTLS bool, rootCAs []string, dbPrefix string, channelName string, ) (*Storage, error)
NewStorage creates a new redis storage
func (*Storage) LoadCheckPoints ¶
LoadCheckPoints loads the checkpoint from the storage
func (*Storage) RemoveAllData ¶
RemoveAllData removes all data from the storage
func (*Storage) SaveCheckPoints ¶
func (stor *Storage) SaveCheckPoints(ctx context.Context, cp *stordto.ChCheckPoint) (*stordto.ChCheckPoint, error)
SaveCheckPoints saves the checkpoint to the storage
Click to show internal directories.
Click to hide internal directories.