Documentation ¶
Index ¶
- Constants
- type Dao
- func (m *Dao) GetDocumentById(ctx context.Context, id int64) *mtproto.Document
- func (m *Dao) GetDocumentListByIdList(ctx context.Context, idList []int64) []*mtproto.Document
- func (m *Dao) GetEncryptedFile(ctx context.Context, id, accessHash int64) (*mtproto.EncryptedFile, error)
- func (m *Dao) GetPhotoSizeListList(ctx context.Context, idList []int64) (sizes map[int64][]*mtproto.PhotoSize)
- func (m *Dao) GetPhotoSizeListV2(ctx context.Context, sizeId int64) (sizes []*mtproto.PhotoSize)
- func (m *Dao) GetPhotoV2(ctx context.Context, photoId int64) (*mtproto.Photo, error)
- func (m *Dao) GetVideoSizeList(ctx context.Context, sizeId int64) (sizes []*mtproto.VideoSize)
- func (m *Dao) GetVideoSizeListList(ctx context.Context, idList []int64) (sizes map[int64][]*mtproto.VideoSize)
- func (m *Dao) SaveDocumentV2(ctx context.Context, fileName string, document *mtproto.Document)
- func (m *Dao) SaveEncryptedFileV2(ctx context.Context, eF *mtproto.EncryptedFile) error
- func (m *Dao) SavePhotoSizeV2(ctx context.Context, szId int64, szList []*mtproto.PhotoSize) error
- func (m *Dao) SavePhotoV2(ctx context.Context, id, accessHash int64, hasStickers, hasVideo bool, ...) error
- func (m *Dao) SaveVideoSizeV2(ctx context.Context, szId int64, szList []*mtproto.VideoSize) error
- type Mysql
Constants ¶
View Source
const ( CachedTypeSize = 0 CachedTypePathSize = 1 CachedTypeStrippedSize = 2 CachedTypeCachedSize = 3 CachedTypeSizeProgressive = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct { *Mysql sqlc.CachedConn dfs_client.DfsClient }
func (*Dao) GetDocumentById ¶
func (*Dao) GetDocumentListByIdList ¶ added in v0.86.3
func (*Dao) GetEncryptedFile ¶
func (*Dao) GetPhotoSizeListList ¶
func (*Dao) GetPhotoSizeListV2 ¶
func (*Dao) GetPhotoV2 ¶
func (*Dao) GetVideoSizeList ¶
func (*Dao) GetVideoSizeListList ¶ added in v0.86.3
func (*Dao) SaveDocumentV2 ¶
func (*Dao) SaveEncryptedFileV2 ¶
func (*Dao) SavePhotoSizeV2 ¶
func (*Dao) SavePhotoV2 ¶
type Mysql ¶
type Mysql struct { *sqlx.DB *mysql_dao.DocumentsDAO *mysql_dao.EncryptedFilesDAO *mysql_dao.PhotosDAO *mysql_dao.PhotoSizesDAO *mysql_dao.VideoSizesDAO *sqlx.CommonDAO }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.