Documentation ¶
Index ¶
- Variables
- type Channel
- type CreateChannelBatchResults
- type CreateChannelParams
- type CreateCreatorBatchResults
- type CreateCreatorParams
- type CreateStreamStatusBatchResults
- type CreateStreamStatusParams
- type CreateVideoBatchResults
- type CreateVideoParams
- type Creator
- type DBTX
- type GetChannelsByParamsParams
- type GetCreatorsWithChannelsRow
- type GetVideosByIDsRow
- type GetVideosByPlatformsWithStatusParams
- type GetVideosByPlatformsWithStatusRow
- type GetVideosByTimeRangeParams
- type GetVideosByTimeRangeRow
- type Queries
- func (q *Queries) CountCreator(ctx context.Context) (int64, error)
- func (q *Queries) CountVideo(ctx context.Context) (int64, error)
- func (q *Queries) CreateChannel(ctx context.Context, arg []CreateChannelParams) *CreateChannelBatchResults
- func (q *Queries) CreateCreator(ctx context.Context, arg []CreateCreatorParams) *CreateCreatorBatchResults
- func (q *Queries) CreateStreamStatus(ctx context.Context, arg []CreateStreamStatusParams) *CreateStreamStatusBatchResults
- func (q *Queries) CreateVideo(ctx context.Context, arg []CreateVideoParams) *CreateVideoBatchResults
- func (q *Queries) DeleteVideosByIDs(ctx context.Context, ids []string) error
- func (q *Queries) ExistsChannel(ctx context.Context, id string) (bool, error)
- func (q *Queries) ExistsCreator(ctx context.Context, id string) (bool, error)
- func (q *Queries) GetChannelsByParams(ctx context.Context, arg GetChannelsByParamsParams) ([]Channel, error)
- func (q *Queries) GetCreatorsWithChannels(ctx context.Context, memberTypes []string) ([]GetCreatorsWithChannelsRow, error)
- func (q *Queries) GetVideosByIDs(ctx context.Context, ids []string) ([]GetVideosByIDsRow, error)
- func (q *Queries) GetVideosByPlatformsWithStatus(ctx context.Context, arg GetVideosByPlatformsWithStatusParams) ([]GetVideosByPlatformsWithStatusRow, error)
- func (q *Queries) GetVideosByTimeRange(ctx context.Context, arg GetVideosByTimeRangeParams) ([]GetVideosByTimeRangeRow, error)
- func (q *Queries) UpdateChannel(ctx context.Context, arg UpdateChannelParams) (Channel, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type StreamStatus
- type UpdateChannelParams
- type Video
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBatchAlreadyClosed = errors.New("batch already closed")
)
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { ID string PlatformChannelID string CreatorID string PlatformType string Title string Description string PublishedAt pgtype.Timestamptz TotalViewCount int32 SubscriberCount int32 HiddenSubscriberCount bool TotalVideoCount int32 ThumbnailUrl string UpdatedAt pgtype.Timestamptz IsDeleted bool }
type CreateChannelBatchResults ¶
type CreateChannelBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateChannelBatchResults) Close ¶
func (b *CreateChannelBatchResults) Close() error
type CreateChannelParams ¶
type CreateChannelParams struct { ID string PlatformChannelID string CreatorID string PlatformType string Title string Description string PublishedAt pgtype.Timestamptz TotalViewCount int32 SubscriberCount int32 HiddenSubscriberCount bool TotalVideoCount int32 ThumbnailUrl string UpdatedAt pgtype.Timestamptz IsDeleted bool }
type CreateCreatorBatchResults ¶
type CreateCreatorBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateCreatorBatchResults) Close ¶
func (b *CreateCreatorBatchResults) Close() error
type CreateCreatorParams ¶
type CreateStreamStatusBatchResults ¶
type CreateStreamStatusBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateStreamStatusBatchResults) Close ¶
func (b *CreateStreamStatusBatchResults) Close() error
func (*CreateStreamStatusBatchResults) QueryRow ¶
func (b *CreateStreamStatusBatchResults) QueryRow(f func(int, StreamStatus, error))
type CreateStreamStatusParams ¶
type CreateStreamStatusParams struct { ID string VideoID string CreatorID string Status string UpdatedAt pgtype.Timestamptz StartedAt pgtype.Timestamptz EndedAt pgtype.Timestamptz ViewCount int32 }
type CreateVideoBatchResults ¶
type CreateVideoBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateVideoBatchResults) Close ¶
func (b *CreateVideoBatchResults) Close() error
type CreateVideoParams ¶
type GetVideosByIDsRow ¶
type GetVideosByIDsRow struct {
Video Video
}
type GetVideosByPlatformsWithStatusRow ¶
type GetVideosByPlatformsWithStatusRow struct { Video Video StreamStatus StreamStatus }
type GetVideosByTimeRangeParams ¶
type GetVideosByTimeRangeParams struct { StartedAt pgtype.Timestamptz EndedAt pgtype.Timestamptz }
type GetVideosByTimeRangeRow ¶
type GetVideosByTimeRangeRow struct { Video Video StreamStatus StreamStatus }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateChannel ¶
func (q *Queries) CreateChannel(ctx context.Context, arg []CreateChannelParams) *CreateChannelBatchResults
func (*Queries) CreateCreator ¶
func (q *Queries) CreateCreator(ctx context.Context, arg []CreateCreatorParams) *CreateCreatorBatchResults
func (*Queries) CreateStreamStatus ¶
func (q *Queries) CreateStreamStatus(ctx context.Context, arg []CreateStreamStatusParams) *CreateStreamStatusBatchResults
func (*Queries) CreateVideo ¶
func (q *Queries) CreateVideo(ctx context.Context, arg []CreateVideoParams) *CreateVideoBatchResults
func (*Queries) DeleteVideosByIDs ¶
func (*Queries) ExistsChannel ¶
func (*Queries) ExistsCreator ¶
func (*Queries) GetChannelsByParams ¶
func (*Queries) GetCreatorsWithChannels ¶
func (*Queries) GetVideosByIDs ¶
func (*Queries) GetVideosByPlatformsWithStatus ¶
func (q *Queries) GetVideosByPlatformsWithStatus(ctx context.Context, arg GetVideosByPlatformsWithStatusParams) ([]GetVideosByPlatformsWithStatusRow, error)
func (*Queries) GetVideosByTimeRange ¶
func (q *Queries) GetVideosByTimeRange(ctx context.Context, arg GetVideosByTimeRangeParams) ([]GetVideosByTimeRangeRow, error)
func (*Queries) UpdateChannel ¶
type StreamStatus ¶
type StreamStatus struct { ID string VideoID string CreatorID string Status string StartedAt pgtype.Timestamptz EndedAt pgtype.Timestamptz ViewCount int32 UpdatedAt pgtype.Timestamptz }
type UpdateChannelParams ¶
Click to show internal directories.
Click to hide internal directories.