repository

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

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
	CassandraClient *gocql.Session
	// contains filtered or unexported fields
}

func NewRep

func NewRep(svcCtx *svc.ServiceContext) *Rep

func (*Rep) CheckTable

func (r *Rep) CheckTable()

func (*Rep) IncrGroupSeq

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

func (*Rep) IncrUserSeq

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

func (*Rep) SaveGroupChatCassandra

func (r *Rep) SaveGroupChatCassandra(spanCtx context.Context, groupId string, sendTime int64, m *chatpb.MsgDataToDB) error

func (*Rep) SaveUserChatCassandra2

func (r *Rep) SaveUserChatCassandra2(spanCtx context.Context, uid string, sendTime int64, m *chatpb.MsgDataToDB) error

Jump to

Keyboard shortcuts

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