Documentation
¶
Index ¶
- type Dao
- func (d *Dao) Close()
- func (d *Dao) GetOffsetDateBackwardHistoryMessages(ctx context.Context, userId int64, peer *mtproto.PeerUtil, ...) (messages []*mtproto.MessageBox)
- func (d *Dao) GetOffsetDateForwardHistoryMessages(ctx context.Context, userId int64, peer *mtproto.PeerUtil, ...) (messages []*mtproto.MessageBox)
- func (d *Dao) GetOffsetIdBackwardHistoryMessages(ctx context.Context, userId int64, peer *mtproto.PeerUtil, ...) (messages []*mtproto.MessageBox)
- func (d *Dao) GetOffsetIdBackwardUnreadMentions(ctx context.Context, userId int64, peer *mtproto.PeerUtil, ...) (messages []*mtproto.MessageBox)
- func (d *Dao) GetOffsetIdForwardHistoryMessages(ctx context.Context, userId int64, peer *mtproto.PeerUtil, ...) (messages []*mtproto.MessageBox)
- func (d *Dao) GetOffsetIdForwardUnreadMentions(ctx context.Context, userId int64, peer *mtproto.PeerUtil, ...) (messages []*mtproto.MessageBox)
- func (d *Dao) MakeMessageBox(ctx context.Context, selfUserId int64, do *dataobject.MessagesDO) (box *mtproto.MessageBox)
- func (d *Dao) Ping(ctx context.Context) (err error)
- type Mysql
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct { *Mysql sqlc.CachedConn }
Dao dao.
func (*Dao) GetOffsetDateBackwardHistoryMessages ¶
func (*Dao) GetOffsetDateForwardHistoryMessages ¶
func (*Dao) GetOffsetIdBackwardHistoryMessages ¶
func (d *Dao) GetOffsetIdBackwardHistoryMessages(ctx context.Context, userId int64, peer *mtproto.PeerUtil, offsetId, minId, maxId, limit int32, hash int64) (messages []*mtproto.MessageBox)
GetOffsetIdBackwardHistoryMessages offset
func (*Dao) GetOffsetIdBackwardUnreadMentions ¶
func (d *Dao) GetOffsetIdBackwardUnreadMentions(ctx context.Context, userId int64, peer *mtproto.PeerUtil, offsetId, minId, maxId, limit int32) (messages []*mtproto.MessageBox)
GetOffsetIdBackwardUnreadMentions GetOffsetIdBackwardUnreadMentions
func (*Dao) GetOffsetIdForwardHistoryMessages ¶
func (*Dao) GetOffsetIdForwardUnreadMentions ¶
func (*Dao) MakeMessageBox ¶
func (d *Dao) MakeMessageBox(ctx context.Context, selfUserId int64, do *dataobject.MessagesDO) (box *mtproto.MessageBox)
Click to show internal directories.
Click to hide internal directories.