Documentation
¶
Index ¶
- Variables
- type AddChannelParams
- type AddVideoParams
- type Channel
- type ChannelPriority
- type DBTX
- type GetAllVideosForStorageLimitParams
- type Queries
- func (q *Queries) AddChannel(ctx context.Context, arg AddChannelParams) (Channel, error)
- func (q *Queries) AddVideo(ctx context.Context, arg AddVideoParams) (Video, error)
- func (q *Queries) DeleteVideo(ctx context.Context, tid string) error
- func (q *Queries) GetAllChannels(ctx context.Context) ([]Channel, error)
- func (q *Queries) GetAllVideos(ctx context.Context) ([]Video, error)
- func (q *Queries) GetAllVideosForStorage(ctx context.Context, storage string) ([]Video, error)
- func (q *Queries) GetAllVideosForStorageLimit(ctx context.Context, arg GetAllVideosForStorageLimitParams) ([]Video, error)
- func (q *Queries) GetChannel(ctx context.Context, claimID string) (Channel, error)
- func (q *Queries) GetVideo(ctx context.Context, sdHash string) (Video, error)
- func (q *Queries) RecordVideoAccess(ctx context.Context, sdHash string) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Video
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrationsFS embed.FS
Functions ¶
This section is empty.
Types ¶
type AddChannelParams ¶
type AddChannelParams struct { URL string ClaimID string Priority ChannelPriority }
type AddVideoParams ¶
type ChannelPriority ¶
type ChannelPriority string
const ( ChannelPriorityHigh ChannelPriority = "high" ChannelPriorityNormal ChannelPriority = "normal" ChannelPriorityLow ChannelPriority = "low" ChannelPriorityDisabled ChannelPriority = "disabled" )
func (*ChannelPriority) Scan ¶
func (e *ChannelPriority) Scan(src interface{}) error
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddChannel ¶
func (*Queries) GetAllChannels ¶
func (*Queries) GetAllVideosForStorage ¶
func (*Queries) GetAllVideosForStorageLimit ¶
func (*Queries) GetChannel ¶
func (*Queries) RecordVideoAccess ¶
Click to show internal directories.
Click to hide internal directories.