Add Seriatim input module skeleton

This commit is contained in:
2026-07-03 21:09:43 +00:00
parent f4d37f9557
commit 47013daa04
4 changed files with 217 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package seriatim
import (
"encoding/json"
"gitea.maximumdirect.net/eric/notarius/internal/core/source"
)
const (
MetadataSpeaker = "speaker"
MetadataStart = "start"
MetadataEnd = "end"
)
func Speaker(unit source.SourceUnit) (string, bool) {
value, ok := unit.Metadata[MetadataSpeaker].(string)
return value, ok
}
func Start(unit source.SourceUnit) (json.Number, bool) {
value, ok := unit.Metadata[MetadataStart].(json.Number)
return value, ok
}
func End(unit source.SourceUnit) (json.Number, bool) {
value, ok := unit.Metadata[MetadataEnd].(json.Number)
return value, ok
}