Documentation
¶
Index ¶
- Variables
- func Conn() *pgxpool.Pool
- func Init()
- type AddDisabledExtractorParams
- type Chat
- type ChatType
- type CreateMediaFormatParams
- type CreateMediaParams
- type DBTX
- type Errors
- type GetMediaByContentIDParams
- type GetMediaByContentIDRow
- type GetMediaFormatRow
- type GetMediaItemsRow
- type GetMediaRow
- type GetOrCreateChatParams
- type GetOrCreateChatRow
- type GetStatsRow
- type LogErrorParams
- type Media
- type MediaCodec
- type MediaFormat
- type MediaItem
- type MediaType
- type NullChatType
- type NullMediaCodec
- type NullMediaType
- type Queries
- func (q *Queries) AddDisabledExtractor(ctx context.Context, arg AddDisabledExtractorParams) error
- func (q *Queries) CreateMedia(ctx context.Context, arg CreateMediaParams) (int64, error)
- func (q *Queries) CreateMediaFormat(ctx context.Context, arg CreateMediaFormatParams) error
- func (q *Queries) CreateMediaItem(ctx context.Context, mediaID int64) (int64, error)
- func (q *Queries) GetErrorByID(ctx context.Context, id string) (string, error)
- func (q *Queries) GetMedia(ctx context.Context, id int64) (GetMediaRow, error)
- func (q *Queries) GetMediaByContentID(ctx context.Context, arg GetMediaByContentIDParams) (GetMediaByContentIDRow, error)
- func (q *Queries) GetMediaFormat(ctx context.Context, itemID int64) (GetMediaFormatRow, error)
- func (q *Queries) GetMediaItems(ctx context.Context, mediaID int64) ([]GetMediaItemsRow, error)
- func (q *Queries) GetOrCreateChat(ctx context.Context, arg GetOrCreateChatParams) (GetOrCreateChatRow, error)
- func (q *Queries) GetStats(ctx context.Context, sinceDate pgtype.Timestamptz) (GetStatsRow, error)
- func (q *Queries) LogError(ctx context.Context, arg LogErrorParams) error
- func (q *Queries) RemoveDisabledExtractor(ctx context.Context, arg RemoveDisabledExtractorParams) error
- func (q *Queries) SetChatLanguage(ctx context.Context, arg SetChatLanguageParams) error
- func (q *Queries) SetChatMediaAlbumLimit(ctx context.Context, arg SetChatMediaAlbumLimitParams) error
- func (q *Queries) ToggleChatCaptions(ctx context.Context, chatID int64) error
- func (q *Queries) ToggleChatDeleteLinks(ctx context.Context, chatID int64) error
- func (q *Queries) ToggleChatNsfw(ctx context.Context, chatID int64) error
- func (q *Queries) ToggleChatSilentMode(ctx context.Context, chatID int64) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RemoveDisabledExtractorParams
- type SetChatLanguageParams
- type SetChatMediaAlbumLimitParams
- type Settings
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrationsFS embed.FS
Functions ¶
Types ¶
type AddDisabledExtractorParams ¶
type AddDisabledExtractorParams struct {
ExtractorID interface{}
ChatID int64
}
type Chat ¶
type Chat struct {
ChatID int64
Type ChatType
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type CreateMediaFormatParams ¶
type CreateMediaParams ¶
type GetMediaByContentIDRow ¶
type GetMediaFormatRow ¶
type GetMediaItemsRow ¶
type GetMediaRow ¶
type GetOrCreateChatParams ¶
type GetOrCreateChatRow ¶
type GetStatsRow ¶
type LogErrorParams ¶
type MediaCodec ¶
type MediaCodec string
const ( MediaCodecAvc MediaCodec = "avc" MediaCodecHevc MediaCodec = "hevc" MediaCodecVp9 MediaCodec = "vp9" MediaCodecVp8 MediaCodec = "vp8" MediaCodecAv1 MediaCodec = "av1" MediaCodecWebp MediaCodec = "webp" MediaCodecAac MediaCodec = "aac" MediaCodecOpus MediaCodec = "opus" MediaCodecVorbis MediaCodec = "vorbis" MediaCodecMp3 MediaCodec = "mp3" MediaCodecFlac MediaCodec = "flac" )
func (*MediaCodec) Scan ¶
func (e *MediaCodec) Scan(src interface{}) error
type MediaFormat ¶
type MediaFormat struct {
FormatID string
ItemID int64
FileID string
Type MediaType
AudioCodec NullMediaCodec
VideoCodec NullMediaCodec
Duration pgtype.Int4
Title pgtype.Text
Artist pgtype.Text
Width pgtype.Int4
Height pgtype.Int4
Bitrate pgtype.Int8
FileSize pgtype.Int8
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type MediaItem ¶
type MediaItem struct {
ID int64
MediaID int64
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type NullChatType ¶
func (*NullChatType) Scan ¶
func (ns *NullChatType) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullMediaCodec ¶
type NullMediaCodec struct {
MediaCodec MediaCodec
Valid bool // Valid is true if MediaCodec is not NULL
}
func (*NullMediaCodec) Scan ¶
func (ns *NullMediaCodec) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullMediaType ¶
type NullMediaType struct {
MediaType MediaType
Valid bool // Valid is true if MediaType is not NULL
}
func (*NullMediaType) Scan ¶
func (ns *NullMediaType) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddDisabledExtractor ¶
func (q *Queries) AddDisabledExtractor(ctx context.Context, arg AddDisabledExtractorParams) error
func (*Queries) CreateMedia ¶
func (*Queries) CreateMediaFormat ¶
func (q *Queries) CreateMediaFormat(ctx context.Context, arg CreateMediaFormatParams) error
func (*Queries) CreateMediaItem ¶
func (*Queries) GetErrorByID ¶
func (*Queries) GetMediaByContentID ¶
func (q *Queries) GetMediaByContentID(ctx context.Context, arg GetMediaByContentIDParams) (GetMediaByContentIDRow, error)
func (*Queries) GetMediaFormat ¶
func (*Queries) GetMediaItems ¶
func (*Queries) GetOrCreateChat ¶
func (q *Queries) GetOrCreateChat(ctx context.Context, arg GetOrCreateChatParams) (GetOrCreateChatRow, error)
func (*Queries) GetStats ¶
func (q *Queries) GetStats(ctx context.Context, sinceDate pgtype.Timestamptz) (GetStatsRow, error)
func (*Queries) LogError ¶
func (q *Queries) LogError(ctx context.Context, arg LogErrorParams) error
func (*Queries) RemoveDisabledExtractor ¶
func (q *Queries) RemoveDisabledExtractor(ctx context.Context, arg RemoveDisabledExtractorParams) error
func (*Queries) SetChatLanguage ¶
func (q *Queries) SetChatLanguage(ctx context.Context, arg SetChatLanguageParams) error
func (*Queries) SetChatMediaAlbumLimit ¶
func (q *Queries) SetChatMediaAlbumLimit(ctx context.Context, arg SetChatMediaAlbumLimitParams) error
func (*Queries) ToggleChatCaptions ¶
func (*Queries) ToggleChatDeleteLinks ¶
func (*Queries) ToggleChatNsfw ¶
func (*Queries) ToggleChatSilentMode ¶
type RemoveDisabledExtractorParams ¶
type RemoveDisabledExtractorParams struct {
ExtractorID interface{}
ChatID int64
}
type SetChatLanguageParams ¶
Click to show internal directories.
Click to hide internal directories.