You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package database
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/openimsdk/open-im-server/v3/pkg/common/storage/model"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
FirstVersion = 1
|
|
|
|
DefaultDeleteVersion = 0
|
|
|
|
)
|
|
|
|
|
|
|
|
type VersionLog interface {
|
|
|
|
IncrVersion(ctx context.Context, dId string, eIds []string, state int32) error
|
|
|
|
FindChangeLog(ctx context.Context, dId string, version uint, limit int) (*model.VersionLog, error)
|
|
|
|
BatchFindChangeLog(ctx context.Context, dIds []string, versions []uint, limits []int) ([]*model.VersionLog, error)
|
|
|
|
DeleteAfterUnchangedLog(ctx context.Context, deadline time.Time) error
|
|
|
|
Delete(ctx context.Context, dId string) error
|
|
|
|
}
|