2020-07-10 21:33:43 +00:00
|
|
|
package generator
|
|
|
|
|
|
|
|
import (
|
|
|
|
"segmenta/pkg/handler"
|
|
|
|
)
|
|
|
|
|
2020-07-13 12:24:28 +00:00
|
|
|
// Generator implements behaviour for generating segments from some incoming media stream.
|
|
|
|
// TODO: possibly rename to Segmenter?
|
2020-07-10 21:33:43 +00:00
|
|
|
// TODO: define or not?
|
|
|
|
type Generator interface {
|
|
|
|
Generate() error
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: define or not?
|
|
|
|
type Handled interface {
|
|
|
|
AddHandler(h handler.Handler)
|
|
|
|
RemoveHandler(h handler.Handler)
|
|
|
|
}
|