repository

package
v0.0.0-...-efd9455 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CassandraHistory

type CassandraHistory struct {
	CassandraClient *gocql.Session
	// contains filtered or unexported fields
}

func (*CassandraHistory) GetMsgBySeqList

func (r *CassandraHistory) GetMsgBySeqList(uid string, seqList []uint32) (seqMsg []*pb.MsgData, err error)

func (*CassandraHistory) GetMsgBySuperGroupSeqList

func (r *CassandraHistory) GetMsgBySuperGroupSeqList(groupId string, seqList []uint32) (seqMsg []*pb.MsgData, err error)

type IPullHistoryMsg

type IPullHistoryMsg interface {
	GetMsgBySeqList(uid string, seqList []uint32) (seqMsg []*pb.MsgData, err error)
	GetMsgBySuperGroupSeqList(groupId string, seqList []uint32) (seqMsg []*pb.MsgData, err error)
}

type MongoHistory

type MongoHistory struct {
	MongoClient *mongo.Client
	// contains filtered or unexported fields
}

func (*MongoHistory) GetMsgBySeqList

func (r *MongoHistory) GetMsgBySeqList(uid string, seqList []uint32) (seqMsg []*pb.MsgData, err error)

func (*MongoHistory) GetMsgBySuperGroupSeqList

func (r *MongoHistory) GetMsgBySuperGroupSeqList(groupId string, seqList []uint32) (seqMsg []*pb.MsgData, err error)

type Rep

type Rep struct {
	Cache redis.UniversalClient
	IPullHistoryMsg
	// contains filtered or unexported fields
}

func NewRep

func NewRep(svcCtx *svc.ServiceContext) *Rep

func (*Rep) GetSuperGroupMaxSeq

func (r *Rep) GetSuperGroupMaxSeq(groupId string) (uint64, error)

func (*Rep) GetSuperGroupMinSeq

func (r *Rep) GetSuperGroupMinSeq(groupId string) (uint64, error)

func (*Rep) GetUserMaxSeq

func (r *Rep) GetUserMaxSeq(uid string) (uint64, error)

func (*Rep) GetUserMinSeq

func (r *Rep) GetUserMinSeq(uid string) (uint64, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL