Documentation ¶
Index ¶
- type Rep
- func (r *Rep) CheckMongoIndexSingle()
- func (r *Rep) CheckMongoIndexSuperGroup()
- func (r *Rep) IncrSuperGroupSeq(groupId string) (uint64, error)
- func (r *Rep) IncrUserSeq(uid string) (uint64, error)
- func (r *Rep) SaveSuperGroupChatMongo2(spanCtx context.Context, groupId string, sendTime int64, m *chatpb.MsgDataToDB) error
- func (r *Rep) SaveUserChatMongo2(spanCtx context.Context, uid string, sendTime int64, m *chatpb.MsgDataToDB) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rep ¶
type Rep struct { Cache redis.UniversalClient //mysql *gorm.DB MongoClient *mongo.Client // contains filtered or unexported fields }
func NewRep ¶
func NewRep(svcCtx *svc.ServiceContext) *Rep
func (*Rep) CheckMongoIndexSingle ¶
func (r *Rep) CheckMongoIndexSingle()
func (*Rep) CheckMongoIndexSuperGroup ¶
func (r *Rep) CheckMongoIndexSuperGroup()
func (*Rep) SaveSuperGroupChatMongo2 ¶
func (*Rep) SaveUserChatMongo2 ¶
Click to show internal directories.
Click to hide internal directories.