mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-27 14:02:15 +08:00
cmd gci write \
-s standard \
-s default \
-s "prefix(github.com/openimsdk/open-im-server/v3)"
15 lines
427 B
Go
15 lines
427 B
Go
package database
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
|
|
"github.com/openimsdk/open-im-server/v3/pkg/common/storage/model"
|
|
)
|
|
|
|
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)
|
|
}
|