segmento/pkg/generator/generator.go

19 lines
373 B
Go
Raw Normal View History

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?
// TODO: define or not?
type Generator interface {
Generate() error
}
// TODO: define or not?
type Handled interface {
AddHandler(h handler.Handler)
RemoveHandler(h handler.Handler)
}