dao

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

func New

func New(c *config.Config) *Dao

func (*Dao) AddRecordSeqIndex

func (d *Dao) AddRecordSeqIndex(uid string, m *model.MsgIndex) error

func (*Dao) CheckInGroup

func (d *Dao) CheckInGroup(ctx context.Context, uid string, gid int64) (isOk bool, err error)

func (*Dao) GetMid

func (d *Dao) GetMid(ctx context.Context) (id int64, err error)

Receive receive a message.

func (*Dao) GetRecordSeqIndex

func (d *Dao) GetRecordSeqIndex(uid, seq string) (*model.MsgIndex, error)

func (*Dao) PublishToSend

func (d *Dao) PublishToSend(ctx context.Context, fromId string, data []byte) (err error)

PushMsg push a message to databus.

Jump to

Keyboard shortcuts

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