19 lines
373 B
Go
19 lines
373 B
Go
package generator
|
|
|
|
import (
|
|
"segmenta/pkg/handler"
|
|
)
|
|
|
|
// Generator implements behaviour for generating segments from some incoming media stream.
|
|
// TODO: possibly rename to Segmenter?
|
|
// TODO: define or not?
|
|
type Generator interface {
|
|
Generate() error
|
|
}
|
|
|
|
// TODO: define or not?
|
|
type Handled interface {
|
|
AddHandler(h handler.Handler)
|
|
RemoveHandler(h handler.Handler)
|
|
}
|