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.
14 lines
426 B
14 lines
426 B
4 weeks ago
|
package database
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"github.com/openimsdk/open-im-server/v3/pkg/common/storage/model"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type StreamMsg interface {
|
||
|
CreateStreamMsg(ctx context.Context, model *model.StreamMsg) error
|
||
|
AppendStreamMsg(ctx context.Context, clientMsgID string, startIndex int, packets []string, end bool, deadlineTime time.Time) error
|
||
|
GetStreamMsg(ctx context.Context, clientMsgID string) (*model.StreamMsg, error)
|
||
|
}
|