Documentation ¶
Index ¶
- type ComponentVersion
- type DBTX
- type DiscordServer
- type EncodeTask
- type GetRecordedFilesRow
- type InsertComponentVersionParams
- type InsertEncodeTaskParams
- type InsertProgramMessageParams
- type InsertProgramRecordingParams
- type InsertProgramServiceParams
- type InsertRecordedFilesParams
- type InsertTranscribeTaskParams
- type ListProgramWithMessageAndServiceNameRow
- type ListRecordedFilesRow
- type Program
- type ProgramMessage
- type ProgramRecording
- type ProgramService
- type Queries
- func (q *Queries) CreateOrUpdateService(ctx context.Context, service Service) error
- func (q *Queries) DeleteProgramRecordingByProgramId(ctx context.Context, programID int64) error
- func (q *Queries) GetComponentVersion(ctx context.Context, component string) (ComponentVersion, error)
- func (q *Queries) GetEncodeTaskByTaskID(ctx context.Context, taskID string) (EncodeTask, error)
- func (q *Queries) GetProgram(ctx context.Context, id int64) (Program, error)
- func (q *Queries) GetProgramMessageByMessageID(ctx context.Context, messageID string) (ProgramMessage, error)
- func (q *Queries) GetProgramMessageByProgramID(ctx context.Context, programID int64) (ProgramMessage, error)
- func (q *Queries) GetProgramRecording(ctx context.Context, id int32) (ProgramRecording, error)
- func (q *Queries) GetProgramRecordingByProgramId(ctx context.Context, programID int64) (ProgramRecording, error)
- func (q *Queries) GetProgramServiceByProgramID(ctx context.Context, programID int64) (ProgramService, error)
- func (q *Queries) GetProgramServiceByServiceID(ctx context.Context, serviceID int64) (ProgramService, error)
- func (q *Queries) GetRecordedFiles(ctx context.Context, programID int64) (GetRecordedFilesRow, error)
- func (q *Queries) GetService(ctx context.Context, id int64) (Service, error)
- func (q *Queries) GetServiceByProgramID(ctx context.Context, programID int64) (Service, error)
- func (q *Queries) GetTranscribeTaskByTaskID(ctx context.Context, taskID string) (TranscribeTask, error)
- func (q *Queries) InsertComponentVersion(ctx context.Context, arg InsertComponentVersionParams) error
- func (q *Queries) InsertEncodeTask(ctx context.Context, arg InsertEncodeTaskParams) error
- func (q *Queries) InsertProgram(ctx context.Context, p Program) error
- func (q *Queries) InsertProgramMessage(ctx context.Context, arg InsertProgramMessageParams) error
- func (q *Queries) InsertProgramRecording(ctx context.Context, arg InsertProgramRecordingParams) error
- func (q *Queries) InsertProgramService(ctx context.Context, arg InsertProgramServiceParams) error
- func (q *Queries) InsertRecordedFiles(ctx context.Context, arg InsertRecordedFilesParams) error
- func (q *Queries) InsertServerId(ctx context.Context, serverID string) error
- func (q *Queries) InsertTranscribeTask(ctx context.Context, arg InsertTranscribeTaskParams) error
- func (q *Queries) ListProgramWithMessageAndServiceName(ctx context.Context) ([]ListProgramWithMessageAndServiceNameRow, error)
- func (q *Queries) ListRecordedFiles(ctx context.Context) ([]ListRecordedFilesRow, error)
- func (q *Queries) UpdateComponentVersion(ctx context.Context, arg UpdateComponentVersionParams) error
- func (q *Queries) UpdateProgram(ctx context.Context, p Program) error
- func (q *Queries) UpdateRecordedFilesAribb24Txt(ctx context.Context, arg UpdateRecordedFilesAribb24TxtParams) error
- func (q *Queries) UpdateRecordedFilesMp4(ctx context.Context, arg UpdateRecordedFilesMp4Params) error
- func (q *Queries) UpdateRecordedFilesTranscribedTxt(ctx context.Context, arg UpdateRecordedFilesTranscribedTxtParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RecordedFile
- type Service
- type TranscribeTask
- type UpdateComponentVersionParams
- type UpdateRecordedFilesAribb24TxtParams
- type UpdateRecordedFilesMp4Params
- type UpdateRecordedFilesTranscribedTxtParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentVersion ¶
type DiscordServer ¶ added in v0.12.1
type EncodeTask ¶
type GetRecordedFilesRow ¶ added in v0.13.0
type GetRecordedFilesRow struct { ProgramID int64 `json:"programID"` M2tsPath sql.NullString `json:"m2tsPath"` Mp4Path sql.NullString `json:"mp4Path"` Aribb24TxtPath sql.NullString `json:"aribb24TxtPath"` TranscribedTxtPath sql.NullString `json:"transcribedTxtPath"` Json string `json:"json"` StartAt int64 `json:"startAt"` Duration int32 `json:"duration"` Name string `json:"name"` Description string `json:"description"` Genre string `json:"genre"` ServiceName string `json:"serviceName"` }
type InsertEncodeTaskParams ¶
type InsertRecordedFilesParams ¶
type InsertRecordedFilesParams struct { ProgramID int64 `json:"programID"` M2tsPath sql.NullString `json:"m2tsPath"` }
type ListProgramWithMessageAndServiceNameRow ¶ added in v0.13.0
type ListProgramWithMessageAndServiceNameRow struct { ProgramID int64 `json:"programID"` Json string `json:"json"` EventID int32 `json:"eventID"` ServiceID int32 `json:"serviceID"` NetworkID int32 `json:"networkID"` StartAt int64 `json:"startAt"` Duration int32 `json:"duration"` IsFree bool `json:"isFree"` Name string `json:"name"` Description string `json:"description"` Genre string `json:"genre"` ChannelID string `json:"channelID"` MessageID string `json:"messageID"` ServiceName string `json:"serviceName"` }
type ListRecordedFilesRow ¶ added in v0.13.0
type ListRecordedFilesRow struct { ProgramID int64 `json:"programID"` M2tsPath sql.NullString `json:"m2tsPath"` Mp4Path sql.NullString `json:"mp4Path"` Aribb24TxtPath sql.NullString `json:"aribb24TxtPath"` TranscribedTxtPath sql.NullString `json:"transcribedTxtPath"` Json string `json:"json"` StartAt int64 `json:"startAt"` Duration int32 `json:"duration"` Name string `json:"name"` Description string `json:"description"` Genre string `json:"genre"` ServiceName string `json:"serviceName"` }
type Program ¶
type Program struct { ID int64 `json:"id"` Json string `json:"-"` EventID int32 `json:"eventId"` ServiceID int32 `json:"serviceId"` NetworkID int32 `json:"networkId"` StartAt int64 `json:"startAt"` Duration int32 `json:"duration"` IsFree bool `json:"isFree"` Name string `json:"name"` Description string `json:"description"` Genre string `json:"-"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` }
func (*Program) UnmarshalJSON ¶
type ProgramMessage ¶
type ProgramRecording ¶
type ProgramService ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateOrUpdateService ¶
func (*Queries) DeleteProgramRecordingByProgramId ¶
func (*Queries) GetComponentVersion ¶
func (*Queries) GetEncodeTaskByTaskID ¶
func (*Queries) GetProgram ¶
func (*Queries) GetProgramMessageByMessageID ¶
func (*Queries) GetProgramMessageByProgramID ¶
func (*Queries) GetProgramRecording ¶
func (*Queries) GetProgramRecordingByProgramId ¶
func (*Queries) GetProgramServiceByProgramID ¶
func (*Queries) GetProgramServiceByServiceID ¶
func (*Queries) GetRecordedFiles ¶ added in v0.13.0
func (*Queries) GetService ¶
func (*Queries) GetServiceByProgramID ¶
func (*Queries) GetTranscribeTaskByTaskID ¶
func (*Queries) InsertComponentVersion ¶
func (q *Queries) InsertComponentVersion(ctx context.Context, arg InsertComponentVersionParams) error
func (*Queries) InsertEncodeTask ¶
func (q *Queries) InsertEncodeTask(ctx context.Context, arg InsertEncodeTaskParams) error
func (*Queries) InsertProgram ¶
func (*Queries) InsertProgramMessage ¶
func (q *Queries) InsertProgramMessage(ctx context.Context, arg InsertProgramMessageParams) error
func (*Queries) InsertProgramRecording ¶
func (q *Queries) InsertProgramRecording(ctx context.Context, arg InsertProgramRecordingParams) error
func (*Queries) InsertProgramService ¶
func (q *Queries) InsertProgramService(ctx context.Context, arg InsertProgramServiceParams) error
func (*Queries) InsertRecordedFiles ¶
func (q *Queries) InsertRecordedFiles(ctx context.Context, arg InsertRecordedFilesParams) error
func (*Queries) InsertServerId ¶ added in v0.12.1
func (*Queries) InsertTranscribeTask ¶
func (q *Queries) InsertTranscribeTask(ctx context.Context, arg InsertTranscribeTaskParams) error
func (*Queries) ListProgramWithMessageAndServiceName ¶ added in v0.13.0
func (q *Queries) ListProgramWithMessageAndServiceName(ctx context.Context) ([]ListProgramWithMessageAndServiceNameRow, error)
func (*Queries) ListRecordedFiles ¶ added in v0.13.0
func (q *Queries) ListRecordedFiles(ctx context.Context) ([]ListRecordedFilesRow, error)
func (*Queries) UpdateComponentVersion ¶
func (q *Queries) UpdateComponentVersion(ctx context.Context, arg UpdateComponentVersionParams) error
func (*Queries) UpdateProgram ¶
func (*Queries) UpdateRecordedFilesAribb24Txt ¶
func (q *Queries) UpdateRecordedFilesAribb24Txt(ctx context.Context, arg UpdateRecordedFilesAribb24TxtParams) error
func (*Queries) UpdateRecordedFilesMp4 ¶
func (q *Queries) UpdateRecordedFilesMp4(ctx context.Context, arg UpdateRecordedFilesMp4Params) error
func (*Queries) UpdateRecordedFilesTranscribedTxt ¶
func (q *Queries) UpdateRecordedFilesTranscribedTxt(ctx context.Context, arg UpdateRecordedFilesTranscribedTxtParams) error
type RecordedFile ¶
type RecordedFile struct { ID int32 `json:"id"` ProgramID int64 `json:"programID"` M2tsPath sql.NullString `json:"m2tsPath"` Mp4Path sql.NullString `json:"mp4Path"` Aribb24TxtPath sql.NullString `json:"aribb24TxtPath"` TranscribedTxtPath sql.NullString `json:"transcribedTxtPath"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
type Service ¶
type Service struct { ID int64 `json:"id"` ServiceID int32 `json:"serviceId"` NetworkID int32 `json:"networkId"` Type int32 `json:"type"` LogoID int32 `json:"logoID"` RemoteControlKeyID int32 `json:"remoteControlKeyId"` Name string `json:"name"` ChannelType string `json:"-"` Channel string `json:"-"` HasLogoData bool `json:"hasLogoData"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` }
func (*Service) UnmarshalJSON ¶
type TranscribeTask ¶
type UpdateRecordedFilesAribb24TxtParams ¶
type UpdateRecordedFilesAribb24TxtParams struct { Aribb24TxtPath sql.NullString `json:"aribb24TxtPath"` ProgramID int64 `json:"programID"` }
type UpdateRecordedFilesMp4Params ¶
type UpdateRecordedFilesMp4Params struct { Mp4Path sql.NullString `json:"mp4Path"` ProgramID int64 `json:"programID"` }
type UpdateRecordedFilesTranscribedTxtParams ¶
type UpdateRecordedFilesTranscribedTxtParams struct { TranscribedTxtPath sql.NullString `json:"transcribedTxtPath"` ProgramID int64 `json:"programID"` }
Click to show internal directories.
Click to hide internal directories.