Documentation ¶
Index ¶
- type ChatCacheData
- type Dao
- func (d *Dao) GetChatCacheKey(chatId int64) string
- func (d *Dao) GetChatParticipantCacheKey(chatId, chatParticipantId int64) string
- func (d *Dao) GetExcludeParticipantsMutableChat(ctx context.Context, chatId int64) (*chatpb.MutableChat, error)
- func (d *Dao) GetLinkInviteSize(ctx context.Context, link string) int32
- func (d *Dao) GetMutableChat(ctx context.Context, chatId int64, id ...int64) (*chatpb.MutableChat, error)
- func (d *Dao) GetRequestedLinkInviteSize(ctx context.Context, link string) int32
- func (d *Dao) MakeChatInviteExported(ctx context.Context, chatInviteDO *dataobject.ChatInvitesDO) *mtproto.ExportedChatInvite
- func (d *Dao) MakeImmutableChatByDO(chatsDO *dataobject.ChatsDO) (chat *chatpb.ImmutableChat)
- func (d *Dao) MakeImmutableChatParticipant(chatParticipantsDO *dataobject.ChatParticipantsDO) (participant *chatpb.ImmutableChatParticipant)
- func (d *Dao) PutMutableChat(ctx context.Context, chat *chatpb.MutableChat) error
- type Mysql
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatCacheData ¶ added in v0.86.3
type ChatCacheData struct { ChatData *chatpb.ImmutableChat `json:"chat_data"` ChatParticipantIdList []int64 `json:"chat_participant_id_list"` }
type Dao ¶
type Dao struct { *Mysql sqlc.CachedConn media_client.MediaClient Plugin plugin.ChatPlugin }
Dao dao.
func (*Dao) GetChatCacheKey ¶ added in v0.86.3
func (*Dao) GetChatParticipantCacheKey ¶ added in v0.86.3
func (*Dao) GetExcludeParticipantsMutableChat ¶ added in v0.90.1
func (*Dao) GetLinkInviteSize ¶ added in v0.90.1
func (*Dao) GetMutableChat ¶
func (*Dao) GetRequestedLinkInviteSize ¶ added in v0.90.1
func (*Dao) MakeChatInviteExported ¶ added in v0.86.3
func (d *Dao) MakeChatInviteExported(ctx context.Context, chatInviteDO *dataobject.ChatInvitesDO) *mtproto.ExportedChatInvite
MakeChatInviteExported , requested bool
func (*Dao) MakeImmutableChatByDO ¶
func (d *Dao) MakeImmutableChatByDO(chatsDO *dataobject.ChatsDO) (chat *chatpb.ImmutableChat)
func (*Dao) MakeImmutableChatParticipant ¶
func (d *Dao) MakeImmutableChatParticipant(chatParticipantsDO *dataobject.ChatParticipantsDO) (participant *chatpb.ImmutableChatParticipant)
func (*Dao) PutMutableChat ¶ added in v0.86.3
type Mysql ¶
type Mysql struct { *sqlx.DB *mysql_dao.ChatInviteParticipantsDAO *mysql_dao.ChatInvitesDAO *mysql_dao.ChatParticipantsDAO *mysql_dao.ChatsDAO *sqlx.CommonDAO }
Click to show internal directories.
Click to hide internal directories.