Documentation ¶
Index ¶
- type Dao
- func (d *Dao) Close()
- func (d *Dao) GetMutableChat(ctx context.Context, chatId int64, id ...int64) (chat *chatpb.MutableChat, err error)
- func (d *Dao) MakeImmutableChatByDO(ctx context.Context, chatsDO *dataobject.ChatsDO) (chat *chatpb.ImmutableChat)
- func (d *Dao) MakeImmutableChatParticipant(chatParticipantsDO *dataobject.ChatParticipantsDO) (participant *chatpb.ImmutableChatParticipant)
- 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 media_client.MediaClient }
Dao dao.
func (*Dao) GetMutableChat ¶
func (*Dao) MakeImmutableChatByDO ¶
func (d *Dao) MakeImmutableChatByDO(ctx context.Context, chatsDO *dataobject.ChatsDO) (chat *chatpb.ImmutableChat)
func (*Dao) MakeImmutableChatParticipant ¶
func (d *Dao) MakeImmutableChatParticipant(chatParticipantsDO *dataobject.ChatParticipantsDO) (participant *chatpb.ImmutableChatParticipant)
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.