Initial commit
Proof-of-concept implementation. Bugs will occur.
This commit is contained in:
31
internal/domains/transcoder/transcoder.go
Normal file
31
internal/domains/transcoder/transcoder.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package transcoder
|
||||
|
||||
import (
|
||||
"source.hodakov.me/hdkv/faketunes/internal/application"
|
||||
"source.hodakov.me/hdkv/faketunes/internal/domains"
|
||||
)
|
||||
|
||||
var (
|
||||
_ domains.Transcoder = new(Transcoder)
|
||||
_ domains.Domain = new(Transcoder)
|
||||
)
|
||||
|
||||
type Transcoder struct {
|
||||
app *application.App
|
||||
transcodeQueue chan struct{}
|
||||
}
|
||||
|
||||
func New(app *application.App) *Transcoder {
|
||||
return &Transcoder{
|
||||
app: app,
|
||||
transcodeQueue: make(chan struct{}, app.Config().Transcoding.Parallel),
|
||||
}
|
||||
}
|
||||
|
||||
func (t *Transcoder) ConnectDependencies() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (t *Transcoder) Start() error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user